Skip to content

Commit d56373f

Browse files
docs: Update examples to LCG view 102 and AnalysisBase v22.2.113 (#24)
* Update examples to use LCG view 102 x86_64-centos7-gcc11-opt. * Update examples to use AnalysisBase v22.2.113. * Update use example in README to use information from LCG view 102.
1 parent 43b1c57 commit d56373f

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
venv-name: ["example", "name-with-hyphens"]
17-
setup-command: [". /release_setup.sh", "lsetup 'views LCG_101 x86_64-centos7-gcc10-opt'"]
17+
setup-command: [". /release_setup.sh", "lsetup 'views LCG_102 x86_64-centos7-gcc11-opt'"]
1818
container:
1919
image: gitlab-registry.cern.ch/atlas/athena/analysisbase:22.2.113
2020
options: --user root

README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,33 +33,33 @@ Note: cvmfs-venv extends the Python venv module and so requires Python 3.3+.
3333

3434
Examples:
3535

36-
* Setup LCG view 101 on CentOS7 and create a Python virtual environment
36+
* Setup LCG view 102 on CentOS7 and create a Python virtual environment
3737
named 'lcg-example' using the Python 3.9 runtime it provides.
3838

39-
. cvmfs-venv --setup "lsetup 'views LCG_101 x86_64-centos7-gcc10-opt'" lcg-example
39+
. cvmfs-venv --setup "lsetup 'views LCG_102 x86_64-centos7-gcc11-opt'" lcg-example
4040

41-
* Setup ATLAS AnalysisBase release v22.2.110 and create a Python virtual
41+
* Setup ATLAS AnalysisBase release v22.2.113 and create a Python virtual
4242
environment named 'alrb-example' using the Python 3.9 runtime it provides.
4343

44-
. cvmfs-venv --setup 'asetup AnalysisBase,22.2.110' alrb-example
44+
. cvmfs-venv --setup 'asetup AnalysisBase,22.2.113' alrb-example
4545

4646
* Create a Python 3 virtual environment named 'venv' with whatever Python
4747
runtime "$(command -v python3)" evaluates to.
4848

4949
. cvmfs-venv
5050

5151
* Create a Python 3 virtual environment named 'lcg-example' with the Python
52-
runtime provided by LCG view 101.
52+
runtime provided by LCG view 102.
5353

5454
setupATLAS -3
55-
lsetup 'views LCG_101 x86_64-centos7-gcc10-opt'
55+
lsetup 'views LCG_102 x86_64-centos7-gcc11-opt'
5656
. cvmfs-venv lcg-example
5757

5858
* Create a Python 3 virtual environment named 'alrb-example' with the Python
59-
runtime provided by ATLAS AnalysisBase release v22.2.110.
59+
runtime provided by ATLAS AnalysisBase release v22.2.113.
6060

6161
setupATLAS -3
62-
asetup AnalysisBase,22.2.110
62+
asetup AnalysisBase,22.2.113
6363
. cvmfs-venv alrb-example
6464
```
6565

@@ -71,50 +71,50 @@ $ ssh lxplus
7171
[feickert@lxplus732 ~]$ export PATH=~/.local/bin:"${PATH}"
7272
[feickert@lxplus732 ~]$ curl -sL https://raw.githubusercontent.com/matthewfeickert/cvmfs-venv/main/cvmfs-venv.sh -o ~/.local/bin/cvmfs-venv
7373
[feickert@lxplus732 ~]$ chmod +x ~/.local/bin/cvmfs-venv
74-
[feickert@lxplus732 ~]$ . cvmfs-venv --setup "lsetup 'views LCG_101 x86_64-centos7-gcc10-opt'" lcg-example
74+
[feickert@lxplus732 ~]$ . cvmfs-venv --setup "lsetup 'views LCG_102 x86_64-centos7-gcc11-opt'" lcg-example
7575

76-
lsetup 'views LCG_101 x86_64-centos7-gcc10-opt'
76+
lsetup 'views LCG_102 x86_64-centos7-gcc11-opt'
7777
************************************************************************
7878
Requested: views ...
79-
Setting up views LCG_101:x86_64-centos7-gcc10-opt ...
79+
Setting up views LCG_102:x86_64-centos7-gcc11-opt ...
8080
>>>>>>>>>>>>>>>>>>>>>>>>> Information for user <<<<<<<<<<<<<<<<<<<<<<<<<
8181
************************************************************************
8282
# Creating new Python virtual environment 'lcg-example'
8383
(lcg-example) [feickert@lxplus732 ~]$ python -m pip show lhapdf # Still have full LCG view
8484
Name: LHAPDF
85-
Version: 6.3.0
86-
Summary: UNKNOWN
87-
Home-page: UNKNOWN
88-
Author: UNKNOWN
89-
Author-email: UNKNOWN
90-
License: UNKNOWN
91-
Location: /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc10-opt/lib/python3.9/site-packages
85+
Version: 6.5.1
86+
Summary: The LHAPDF parton density evaluation library
87+
Home-page: https://lhapdf.hepforge.org/
88+
Author: LHAPDF Collaboration
89+
Author-email: lhapdf-dev@cern.ch
90+
License: GPLv3
91+
Location: /cvmfs/sft.cern.ch/lcg/views/LCG_102/x86_64-centos7-gcc11-opt/lib/python3.9/site-packages
9292
Requires:
9393
Required-by:
9494
(lcg-example) [feickert@lxplus732 ~]$ python -m pip install --upgrade awkward # This will show a false ERROR given CVFMS is in PYTHONPATH
9595
(lcg-example) [feickert@lxplus732 ~]$ python
96-
Python 3.9.6 (default, Sep 6 2021, 15:35:00)
97-
[GCC 10.3.0] on linux
96+
Python 3.9.12 (main, Jun 7 2022, 16:09:12)
97+
[GCC 11.2.0] on linux
9898
Type "help", "copyright", "credits" or "license" for more information.
9999
>>> import ROOT
100100
>>> import XRootD
101101
>>> import awkward
102102
>>> exit()
103103
(lcg-example) [feickert@lxplus732 ~]$ python -m pip show awkward # Get version installed in venv
104104
Name: awkward
105-
Version: 2.1.0
105+
Version: 2.1.1
106106
Summary: Manipulate JSON-like data with NumPy-like idioms.
107107
Home-page:
108108
Author:
109109
Author-email: Jim Pivarski <pivarski@princeton.edu>
110110
License: BSD-3-Clause
111111
Location: /afs/cern.ch/user/f/feickert/lcg-example/lib/python3.9/site-packages
112112
Requires: awkward-cpp, numpy, packaging, typing-extensions
113-
Required-by:
113+
Required-by: coffea
114114
(lcg-example) [feickert@lxplus732 ~]$ python -m pip list --local # View of virtual environment controlled packages
115115
Package Version
116116
----------------- -------
117-
awkward 2.1.0
117+
awkward 2.1.1
118118
awkward-cpp 12
119119
pip 23.0.1
120120
setuptools 67.6.0
@@ -123,15 +123,15 @@ wheel 0.40.0
123123
(lcg-example) [feickert@lxplus732 ~]$ deactivate # Resets PYTHONPATH given added hooks
124124
[feickert@lxplus732 ~]$ python -m pip show awkward # Get CVMFS's old version
125125
Name: awkward
126-
Version: 1.0.2
126+
Version: 1.7.0
127127
Summary: Manipulate JSON-like data with NumPy-like idioms.
128128
Home-page: https://github.com/scikit-hep/awkward-1.0
129129
Author: Jim Pivarski
130130
Author-email: pivarski@princeton.edu
131-
License: BSD 3-clause
132-
Location: /cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc10-opt/lib/python3.9/site-packages
133-
Requires: setuptools, numpy
134-
Required-by:
131+
License: BSD-3-Clause
132+
Location: /cvmfs/sft.cern.ch/lcg/views/LCG_102/x86_64-centos7-gcc11-opt/lib/python3.9/site-packages
133+
Requires: numpy, setuptools
134+
Required-by: coffea
135135
```
136136

137137
## Dependencies
@@ -174,7 +174,7 @@ This is done by injecting Bash snippets directly into the `bin/activate` script
174174
vs.
175175
```console
176176
$ setupATLAS -3
177-
$ lsetup "views LCG_101 x86_64-centos7-gcc10-opt"
177+
$ lsetup "views LCG_102 x86_64-centos7-gcc11-opt"
178178
$ . venv/bin/activate
179179
```
180180
* As the virtual environment is **prepended** to `PYTHONPATH` all packages installed in the virtual environment are automatically given higher precedence over existing packages of the same name found in the LCG view.
@@ -186,7 +186,7 @@ This is done by injecting Bash snippets directly into the `bin/activate` script
186186

187187
```console
188188
$ setupATLAS -3
189-
$ lsetup "views LCG_101 x86_64-centos7-gcc10-opt"
189+
$ lsetup "views LCG_102 x86_64-centos7-gcc11-opt"
190190
$ lsetup "rucio -w" # PYTHONPATH is altered by lsetup
191191
$ command -v rucio # rucio is found
192192
$ . venv/bin/activate
@@ -199,7 +199,7 @@ This is done by injecting Bash snippets directly into the `bin/activate` script
199199

200200
```console
201201
$ setupATLAS -3
202-
$ lsetup "views LCG_101 x86_64-centos7-gcc10-opt"
202+
$ lsetup "views LCG_102 x86_64-centos7-gcc11-opt"
203203
$ . venv/bin/activate
204204
(venv) $ lsetup "rucio -w" # PYTHONPATH is altered by lsetup
205205
(venv) $ command -v rucio # rucio is found

cvmfs-venv.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,33 @@ Note: cvmfs-venv extends the Python venv module and so requires Python 3.3+.
1515
1616
Examples:
1717
18-
* Setup LCG view 101 on CentOS7 and create a Python virtual environment
18+
* Setup LCG view 102 on CentOS7 and create a Python virtual environment
1919
named 'lcg-example' using the Python 3.9 runtime it provides.
2020
21-
. cvmfs-venv --setup "lsetup 'views LCG_101 x86_64-centos7-gcc10-opt'" lcg-example
21+
. cvmfs-venv --setup "lsetup 'views LCG_102 x86_64-centos7-gcc11-opt'" lcg-example
2222
23-
* Setup ATLAS AnalysisBase release v22.2.110 and create a Python virtual
23+
* Setup ATLAS AnalysisBase release v22.2.113 and create a Python virtual
2424
environment named 'alrb-example' using the Python 3.9 runtime it provides.
2525
26-
. cvmfs-venv --setup 'asetup AnalysisBase,22.2.110' alrb-example
26+
. cvmfs-venv --setup 'asetup AnalysisBase,22.2.113' alrb-example
2727
2828
* Create a Python 3 virtual environment named 'venv' with whatever Python
2929
runtime "\$(command -v python3)" evaluates to.
3030
3131
. cvmfs-venv
3232
3333
* Create a Python 3 virtual environment named 'lcg-example' with the Python
34-
runtime provided by LCG view 101.
34+
runtime provided by LCG view 102.
3535
3636
setupATLAS -3
37-
lsetup 'views LCG_101 x86_64-centos7-gcc10-opt'
37+
lsetup 'views LCG_102 x86_64-centos7-gcc11-opt'
3838
. cvmfs-venv lcg-example
3939
4040
* Create a Python 3 virtual environment named 'alrb-example' with the Python
41-
runtime provided by ATLAS AnalysisBase release v22.2.110.
41+
runtime provided by ATLAS AnalysisBase release v22.2.113.
4242
4343
setupATLAS -3
44-
asetup AnalysisBase,22.2.110
44+
asetup AnalysisBase,22.2.113
4545
. cvmfs-venv alrb-example
4646
EOF
4747

0 commit comments

Comments
 (0)