-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
16 lines (13 loc) · 764 Bytes
/
Copy pathsetup.sh
File metadata and controls
16 lines (13 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
source /cvmfs/sft.cern.ch/lcg/views/LCG_96python3/x86_64-centos7-gcc8-opt/setup.sh
# following https://aarongorka.com/blog/portable-virtualenv/
NAME=columnar
python -m venv --copies $NAME
source $NAME/bin/activate
python -m pip install setuptools pip --upgrade
python -m pip install dask distributed bokeh htcondor dask-jobqueue parsl --upgrade
python -m pip install https://github.com/CoffeaTeam/coffea/archive/master.zip
sed -i '40s/.*/VIRTUAL_ENV="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}" )")" \&\& pwd)"/' $NAME/bin/activate
sed -i '1s/#!.*python$/#!\/usr\/bin\/env python/' $NAME/bin/*
sed -i '2a source /cvmfs/sft.cern.ch/lcg/views/LCG_96python3/x86_64-centos7-gcc8-opt/setup.sh' $NAME/bin/activate
tar -zcf ${NAME}.tar.gz $NAME