-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpostBuild
executable file
·59 lines (47 loc) · 1.42 KB
/
postBuild
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
48
49
50
51
52
53
54
55
56
57
58
59
export REPO=`pwd`
echo `pwd`
echo $CONDA_DIR
export PREFIX=${CONDA_DIR}/envs/notebook
cd ${PREFIX}
mkdir -p src
cd src
export TCLLIBPATH=$PREFIX/lib
wget -q https://sourceforge.net/projects/tcl/files/Tcl/9.0.1/tcl9.0.1-src.tar.gz/download -O tcl.tar.gz
tar xvf tcl.tar.gz
cd tcl9.0.1/unix
./configure --prefix=$PREFIX
make && make install
cd ../..
git clone https://github.com/mpcjanssen/rl_json.git rl_json --recursive
cd rl_json
git checkout tcl9
git submodule update
autoconf
./configure --prefix=$PREFIX --with-tcl=/srv/conda/envs/notebook/lib
make && make install
cd ..
wget -q http://github.com/andreas-kupries/critcl/tarball/3.3.1 -O criticl.tar.gz
tar xf criticl.tar.gz
cd andreas-kupries-critcl-254bdff
tclsh9.0 build.tcl install $PREFIX
cd ..
wget -q https://core.tcl-lang.org/tcllib/uv/tcllib-2.0.tar.gz
tar xf tcllib-2.0.tar.gz
cd tcllib-2.0
./configure --prefix=$PREFIX --with-tcl=/srv/conda/envs/notebook/lib
make && make install
cd ..
wget -q https://github.com/mpcjanssen/tclzmq/archive/tcl9.tar.gz -O tclzmq.tar.gz
tar xf tclzmq.tar.gz
cd tclzmq-tcl9
tclsh9.0 build.tcl install $PREFIX/lib -zmq ${PREFIX}
cd ..
rm -r $PREFIX/src
export KERNELPATH=$PREFIX/share/jupyter/kernels/tcljupyter
mkdir -p $KERNELPATH
cp $REPO/kernel.json.binder $KERNELPATH/kernel.json
cp $REPO/init.tcl $KERNELPATH/
cp -R $REPO/modules $KERNELPATH/
cp -R $REPO/libs $KERNELPATH/
tclsh $KERNELPATH/init.tcl
echo `ls -R $PREFIX/share/jupyter/kernels/`