Skip to content

Commit 44913fb

Browse files
committed
Add rust to binder postBuild
In Qiskit#7658 we updated added rust code to the Qiskit build environment. This was done to accelerate performance critical portions of the library. However, in Qiskit#7658 we overlooked the binder tests which are used to perform image comparisons for visualizations in a controlled environment. The base binder docker image does not have the rust compiler installed, so we need to manually install it prior to running pip to install terra. This commit takes care of this and adds rust to the binder environment.
1 parent 9a757c8 commit 44913fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

postBuild

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# https://github.com/Qiskit/qiskit-terra/pull/4544/
33
# See https://mybinder.readthedocs.io/en/latest/config_files.html?#postbuild-run-code-after-installing-the-environment
44

5+
# Install rust compiler to build compiled extensions
6+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup.sh
7+
bash ./rustup.sh -y
8+
source $HOME/.cargo/env
9+
510
# Dependencies
611
# - matplotlib: for MPL drawer
712
# - pylatexenc: for MPL drawer

0 commit comments

Comments
 (0)