Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Dec 12, 2024
1 parent 609722c commit 2485256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion environments/unix-create-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ PACKAGE=osmnx
eval "$(conda shell.bash hook)"
conda activate base
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
Expand Down
6 changes: 3 additions & 3 deletions environments/windows-create-env.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ SET ENV_PATH=%CONDA_ROOT%\envs\%ENV%
SET PACKAGE=osmnx
CALL %CONDA_ROOT%\Scripts\activate.bat && ^
conda activate base && ^
conda env remove -n %ENV% --yes && ^
mamba create -n %ENV% --yes -c conda-forge --strict-channel-priority --file requirements.txt && ^
conda env remove --yes -n %ENV% && ^
mamba create --yes -c conda-forge --strict-channel-priority -n %ENV% --file requirements.txt && ^
conda activate %ENV% && ^
python -m pip --python %ENV_PATH%\python.exe uninstall %PACKAGE% --yes && ^
python -m pip --python %ENV_PATH%\python.exe install -e ../. && ^
python -m pip --python %ENV_PATH%\python.exe check && ^
python -m ipykernel install --prefix %ENV_PATH% --name %ENV% --display-name "Python (%ENV%)" && ^
conda list && ^
python -m pip --python %ENV_PATH%\python.exe check && ^
jupyter kernelspec list && ^
ipython -c "import %PACKAGE%; print('%PACKAGE% version', %PACKAGE%.__version__)"

0 comments on commit 2485256

Please sign in to comment.