forked from materialsproject/workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostBuild
More file actions
56 lines (49 loc) · 1.76 KB
/
postBuild
File metadata and controls
56 lines (49 loc) · 1.76 KB
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
#!/bin/bash
set -ex
export F90=gfortran
git clone --recursive https://github.com/msg-byu/enumlib.git
cd $HOME/enumlib
git checkout -b first_release v1.0.8
git submodule update
cd $HOME/enumlib/symlib/src
make
cd $HOME/enumlib/src
make
make enum.x
make makestr.x
mkdir -p $HOME/.local/bin
cp *.x $HOME/.local/bin/
cd $HOME
jupyter nbextension install --user --py pythreejs
jupyter nbextension enable --user --py pythreejs
jupyter serverextension enable --user --sys-prefix jupyter_server_proxy
jupyter serverextension enable --py nbzip --sys-prefix
jupyter nbextension install --user --py nbzip
jupyter nbextension enable --user --py nbzip
jupyter serverextension enable nbgitpuller --sys-prefix
cat server_proxy_config.py >> ${HOME}/.jupyter/jupyter_notebook_config.py
tar -xvzf ${HOME}/POTCARs.tar.gz -C ${HOME}
echo "PMG_VASP_PSP_DIR: $HOME/POTCARs" >> $HOME/.pmgrc.yaml
mkdir $HOME/mongodb
mkdir -pv $HOME/{log,lib,run}/munge $HOME/run/spool $HOME/run/slurm
PASSWORD=${1:-"Setec Astronomy"}
echo -n $PASSWORD | sha512sum | cut -d' ' -f1 > /tmp/munge.key
chmod go-rwx /tmp/munge.key
chmod +x $HOME/slurm-config.sh
git config --global user.email "jovyan@materialsproject.org"
#cd fireworks && pip install -e . && cd ..
pip install -e .
# MPContribs
git clone -b dev https://github.com/materialsproject/MPContribs.git
export SETUPTOOLS_SCM_PRETEND_VERSION=1.6.0
cd $HOME/MPContribs &&
cd mpcontribs-client && pip install -e . && \
cd ../mpcontribs-io && pip install -e . && \
cd .. && npm install && \
cp -v binder/binder.js . && \
cp -v webpack-binder.config.js webpack.config.js && \
npm run webpack && \
rm -rf node_modules && \
mkdir $HOME/.jupyter/custom && \
mv -v dist $HOME/.jupyter/custom/js && \
cp -v binder/custom.js $HOME/.jupyter/custom/