Skip to content

Commit e3640a4

Browse files
committed
Made the module work with the proposed XENONnT Python 3.6 environment
1 parent 4df640d commit e3640a4

File tree

3 files changed

+35
-17
lines changed

3 files changed

+35
-17
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ Just like utilix, this tool expects a configuration file named `$HOME/.xenonnt.c
2525
# sites to exclude (GLIDEIN_Site), comma seprated list
2626
exclude_sites =
2727

28+
## Environment
29+
30+
Please use the Python3.6 XENONnT environment. On the OSG submit hosts, this can be set up by sourcing:
31+
32+
. /cvmfs/xenon.opensciencegrid.org/testing/releases/latest/setup.sh
33+
2834

outsource/Outsource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def submit_workflow(self):
7878

7979
# does workflow already exist?
8080
if os.path.exists(self._workflow_dir()):
81-
logger.error("Workflow already exists at {path}. Exiting.".format(path=self._workflow_dir()))
81+
logger.error("Workflow already exists at {path} . Exiting.".format(path=self._workflow_dir()))
8282
return
8383

8484
# work dirs

outsource/workflow/run-pax.sh

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,38 @@ export send_updates=$7
1111

1212
start_dir=$PWD
1313

14-
osg_software=/cvmfs/oasis.opensciencegrid.org/mis/osg-wn-client/3.4/3.4.22/el7-x86_64
15-
anaconda_env=/cvmfs/xenon.opensciencegrid.org/releases/anaconda/2.4/bin
16-
rucio_base=/cvmfs/xenon.opensciencegrid.org/software/rucio-py27/1.8.3
17-
18-
# OSG env for gfal
19-
source $osg_software/setup.sh
20-
export GFAL_CONFIG_DIR=$OSG_LOCATION/etc/gfal2.d
21-
export GFAL_PLUGIN_DIR=$OSG_LOCATION/usr/lib64/gfal2-plugins/
22-
23-
# Rucio env
24-
export RUCIO_HOME=$rucio_base/rucio/
25-
export RUCIO_ACCOUNT=xenon-analysis
26-
export PYTHONPATH=$rucio_base/lib/python2.7/site-packages:$PYTHONPATH
27-
export PATH=$rucio_base/bin:$PATH
28-
2914
# set GLIDEIN_Country variable if not already
3015
if [[ -z "$GLIDEIN_Country" ]]; then
3116
export GLIDEIN_Country="US"
3217
fi
3318

19+
if [ -e /image-build-info.txt ]; then
20+
echo
21+
echo "Running in image with build info:"
22+
cat /image-build-info.txt
23+
echo
24+
fi
25+
26+
. /opt/XENONnT/setup.sh
27+
28+
### We should not need these anymore as it is part of the container we running in
29+
###
30+
### osg_software=/cvmfs/oasis.opensciencegrid.org/mis/osg-wn-client/3.4/3.4.22/el7-x86_64
31+
anaconda_env=/cvmfs/xenon.opensciencegrid.org/releases/anaconda/2.4/bin
32+
### rucio_base=/cvmfs/xenon.opensciencegrid.org/software/rucio-py27/1.8.3
33+
###
34+
### # OSG env for gfal
35+
### source $osg_software/setup.sh
36+
### export GFAL_CONFIG_DIR=$OSG_LOCATION/etc/gfal2.d
37+
### export GFAL_PLUGIN_DIR=$OSG_LOCATION/usr/lib64/gfal2-plugins/
38+
###
39+
### # Rucio env
40+
### export RUCIO_HOME=$rucio_base/rucio/
41+
#export PYTHONPATH=$rucio_base/lib/python2.7/site-packages:$PYTHONPATH
42+
#export PATH=$rucio_base/bin:$PATH
43+
44+
export RUCIO_ACCOUNT=xenon-analysis
45+
3446
data_downloaded=0
3547

3648
# If data is in Rucio, find the rse to use
@@ -95,7 +107,7 @@ if [[ $data_downloaded == 0 ]]; then
95107
fi
96108

97109
# post-transfer, we can set up the env for pax - but first save/clear some old stuff
98-
old_path=$PATH
110+
iold_path=$PATH
99111
export PATH=/usr/bin:/bin
100112
old_ld_library_path=$LD_LIBRARY_PATH
101113
unset LD_LIBRARY_PATH

0 commit comments

Comments
 (0)