-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2933 from yuvipanda/cartopy-again
Get python packages from conda-forge, use mamba
- Loading branch information
Showing
16 changed files
with
161 additions
and
153 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,32 @@ | ||
dependencies: | ||
- nodejs==15.* | ||
- pip==20.2.* | ||
- python==3.9.* | ||
- nodejs=15.* | ||
- pip=20.2.* | ||
- python=3.9.* | ||
|
||
# pymc3 needs this | ||
- mkl-service==2.4.* | ||
- mkl-service=2.4.* | ||
|
||
# Base scientific packages that other conda packages we install depend on | ||
# We don't want to have conda packages depend on pip packages if possible | ||
- numpy=1.21.* | ||
- matplotlib=3.4.* | ||
- scipy=1.7.* | ||
- ipympl=0.8.* | ||
- pandas=1.3.* | ||
- statsmodels=0.12.* | ||
- scikit-learn=0.24.* | ||
- seaborn=0.11.* | ||
- bokeh=2.3.* | ||
- decorator=5.0.* | ||
- networkx=2.6.* | ||
- spacy=3.1.* | ||
- nltk=3.6.* | ||
|
||
# EPS88, data100 | ||
# https://github.com/berkeley-dsep-infra/datahub/issues/1796 | ||
# https://github.com/berkeley-dsep-infra/datahub/issues/2824 | ||
- shapely=1.8.* | ||
- cartopy=0.20.* | ||
|
||
# ls 88-3; neuro | ||
- pillow=8.3.* |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
# This downloads and installs a pinned version of mambaforge | ||
set -ex | ||
|
||
cd $(dirname $0) | ||
MAMBAFORGE_VERSION=4.10.3-7 | ||
|
||
URL="https://github.com/conda-forge/miniforge/releases/download/${MAMBAFORGE_VERSION}/Mambaforge-${MAMBAFORGE_VERSION}-Linux-x86_64.sh" | ||
INSTALLER_PATH=/tmp/mambaforge-installer.sh | ||
|
||
# make sure we don't do anything funky with user's $HOME | ||
# since this is run as root | ||
unset HOME | ||
|
||
wget --quiet $URL -O ${INSTALLER_PATH} | ||
chmod +x ${INSTALLER_PATH} | ||
|
||
bash ${INSTALLER_PATH} -b -p ${CONDA_DIR} | ||
export PATH="${CONDA_DIR}/bin:$PATH" | ||
|
||
# Do not attempt to auto update conda or dependencies | ||
conda config --system --set auto_update_conda false | ||
conda config --system --set show_channel_urls true | ||
|
||
# empty conda history file, | ||
# which seems to result in some effective pinning of packages in the initial env, | ||
# which we don't intend. | ||
# this file must not be *removed*, however | ||
echo '' > ${CONDA_DIR}/conda-meta/history | ||
|
||
# Clean things out! | ||
conda clean --all -f -y | ||
|
||
# Remove the big installer so we don't increase docker image size too much | ||
rm ${INSTALLER_PATH} | ||
|
||
# Remove the pip cache created as part of installing mambaforge | ||
rm -rf /root/.cache | ||
|
||
chown -R $NB_USER:$NB_USER ${CONDA_DIR} | ||
|
||
conda list -n root |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.