File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
BASEDIR=$( dirname " $0 " )
5
+ PYVER=" $( python3 --version | sed ' s/.*\(3\.[0-9]*\).*/\1/' ) "
6
+
7
+ if [ -z " $CONDA_PREFIX " ]
8
+ then
9
+ case $( uname) in
10
+ Darwin) KERNELDIR=~ /Library/Jupyter/kernels ;;
11
+ Linux) KERNELDIR=~ /.local/share/jupyter/kernels ;;
12
+ * ) exit 1
13
+ esac
14
+ SITEDIR=" $( python3 -m site --user-site) "
15
+ CONDIR=" $HOME /anaconda3/lib/python$PYVER /site-packages"
16
+ else
17
+ KERNELDIR=" $CONDA_PREFIX " /share/jupyter/kernels
18
+ SITEDIR=" $CONDA_PREFIX /lib/python$PYVER "
19
+ CONDIR=" $SITEDIR " /site-packages
20
+ fi
5
21
6
- case $( uname) in
7
- Darwin) KERNELDIR=~ /Library/Jupyter/kernels ;;
8
- Linux) KERNELDIR=~ /.local/share/jupyter/kernels ;;
9
- * ) exit 1
10
- esac
11
22
mkdir -p " $KERNELDIR "
12
23
cp -r " $BASEDIR " /dyalog-kernel " $KERNELDIR " /
13
24
14
- SITEDIR=" $( python3 -m site --user-site) "
15
25
mkdir -p " $SITEDIR "
16
26
cp -r " $BASEDIR " /dyalog_kernel " $SITEDIR " /
17
27
18
- CONDIR=" $HOME /anaconda3/lib/python3.*/site-packages"
19
28
if [ -d " $CONDIR " ] ; then
20
29
cp -r " $BASEDIR " /dyalog_kernel " $CONDIR " /
21
30
fi
You can’t perform that action at this time.
0 commit comments