-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate_conda_env.sh
executable file
·47 lines (35 loc) · 1.16 KB
/
create_conda_env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/sh
# If you run into mkl-fft problems, try the following
#
# conda config --add pinned_packages conda-forge::numpy
#
# to pin numpy to conda-forge.
if [[ "$#" -eq 0 ]]; then
read -spt 60 "Environment name?" envname
else
envname=$1
fi
echo $envname
function run_script() {
core="pandas scipy numpy numexpr bottleneck matplotlib pytables tabulate h5py numba astropy"
dev="setuptools twine wheel flake8 black sphinx sphinx_rtd_theme pre_commit"
use="jupyter nbdime ipywidgets yaml pyyaml sunpy heliopy cdflib zlib multiprocess blackcellmagic tqdm"
# pkgs="$core $dev $use"
pkgs="$core $dev"
conda create -n $1 python=3.8 $pkgs
# conda init zsh
#
# conda activate $1
# pip install blackcellmagic
}
run_script $envname
#core="pandas scipy numpy numexpr bottleneck matplotlib pytables cython"
#dev="setuptools twine wheel flake8 black sphinx sphinx_rtd_theme pre_commit"
#use="jupyter nbdime widgetsnbextension yaml pyyaml astropy sunpy heliopy cdflib tabulate zlib numba multiprocess"
#
#pkgs="$core $dev $use"
##pkgs="$core $dev"
#
#conda create -n $envname python=3.7 $pkgs
# conda activate $envname
# pip install blackcellmagic