Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simulator v2 install and precompilation to container build steps #612

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Add source activate command
  • Loading branch information
rmshaffer committed Aug 12, 2024
commit d1ce23e4f5951060f3d12467a515fad2c19cd17d
3 changes: 2 additions & 1 deletion nbi/buildspec.yml
Original file line number Diff line number Diff line change
@@ -22,13 +22,14 @@ phases:
- conda config --set channel_priority strict
- conda config --set solver libmamba
- conda install -y -q --freeze-installed -c conda-forge conda-pack=0.7.1
- conda init bash
build:
commands:
- BRAKET_ENV=Braket
- mkdir -p envs
- conda config --set path_conflict warn
- conda env create --name $BRAKET_ENV -f environment.yml --no-default-package --solver libmamba
- conda activate $BRAKET_ENV
- source activate base && conda activate $BRAKET_ENV
- python -c "import braket.simulator_v2"
- pip cache purge
- conda pack --quiet --name $BRAKET_ENV --output envs/Braket.tar --compress-level 1 --n-threads -1
Loading