-
Notifications
You must be signed in to change notification settings - Fork 829
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
set -euo pipefail | ||
echo "Run conda deactivate before running this script." | ||
ENV=ox | ||
ENV_PATH=$(conda info --base)/envs/$ENV | ||
PACKAGE=osmnx | ||
eval "$(conda shell.bash hook)" | ||
conda activate base | ||
conda env remove -n $ENV --yes | ||
mamba create -n $ENV --yes -c conda-forge --strict-channel-priority --file requirements.txt | ||
eval "$(conda shell.bash hook)" | ||
conda env remove --yes -n $ENV || true | ||
conda update --yes -c conda-forge --strict-channel-priority -n base conda mamba | ||
mamba create --yes -c conda-forge --strict-channel-priority -n $ENV --file requirements.txt | ||
conda activate $ENV | ||
python -m pip --python $ENV_PATH uninstall $PACKAGE --yes | ||
python -m pip --python $ENV_PATH install -e ../. | ||
python -m pip --python $ENV_PATH check | ||
python -m ipykernel install --prefix $ENV_PATH --name $ENV --display-name "Python ($ENV)" | ||
conda list -n $ENV | ||
python -m pip --python $ENV_PATH check | ||
jupyter kernelspec list | ||
ipython -c "import $PACKAGE; print('$PACKAGE version', $PACKAGE.__version__)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters