Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Merge requests
!1044
Documentation: update installation for using python 3.11.9
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Documentation: update installation for using python 3.11.9
doc/temp_installation_update
into
master
Overview
3
Commits
3
Pipelines
0
Changes
2
Merged
Karim Ahmed
requested to merge
doc/temp_installation_update
into
master
7 months ago
Overview
3
Commits
3
Pipelines
0
Changes
2
Expand
Description
How Has This Been Tested?
Relevant Documents (optional)
Types of changes
Docs (changes to the documentation)
Checklist:
Reviewers
@roscar
@schmidtp
Edited
7 months ago
by
Karim Ahmed
0
0
Merge request reports
Viewing commit
b7206669
Prev
Next
Show latest version
2 files
+
19
−
33
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b7206669
fix: as pyenv 3.11.9 is available update MR accordingly
· b7206669
Karim Ahmed
authored
7 months ago
docs/development/installation.md
+
10
−
17
Options
@@ -11,27 +11,21 @@ to do this.
## Installation using python virtual environment - recommended
`pycalibration`
uses Python 3.8. Currently, the default
python installation on Maxwell is still Python 3.6.8, so Python 3.8
needs to be loaded from a different location.
`pycalibration`
uses the same version of Python as Karabo, which in June 2021
updated to use Python 3.11. Currently the default python installation on Maxwell
is still Python 3.9, so Python 3.11 needs to be loaded from a different
location.
One option is to use the Maxwell Spack installation, running
`module
load maxwell`
will activate the test Spack instance from
DESY, then you can use
`module load
python-3.8.6-gcc-10.2.0-622qtxd`
to Python 3.8. Note that
this Spack instance is currently a trial phase and may not be stable.
Another option is to use
`pyenv`
, we provide a pyenv
installation at
`/gpfs/exfel/sw/calsoft/.pyenv`
which we use
to manage different versions of python. This can be activated with
`source /gpfs/exfel/sw/calsoft/.pyenv/bin/activate`
Therefore
`pyenv`
is used, we provide a pyenv installation at
`/gpfs/exfel/sw/calsoft/.pyenv`
which we use to manage different versions of
python. This can be activated with
``source /gpfs/exfel/sw/calsoft/.pyenv/bin/activate``
A quick setup would be:
1.
`source /gpfs/exfel/sw/calsoft/.pyenv/bin/activate`
2.
`git clone
--branch 3.14.4
ssh://git@git.xfel.eu:10022/detectors/pycalibration.git && cd pycalibration`
-
2.
`git clone ssh://git@git.xfel.eu:10022/detectors/pycalibration.git && cd pycalibration`
-
clone the offline calibration package from EuXFEL GitLab
3.
`pyenv shell 3.
8.18
`
- load required version of python
3.
`pyenv shell 3.
11.9
`
- load required version of python
4.
`python3 -m venv .venv`
- create the virtual environment
5.
`source .venv/bin/activate`
- activate the virtual environment
6.
`python3 -m pip install --upgrade pip`
- upgrade version of pip
@@ -43,9 +37,8 @@ Copy/paste script:
```
bash
source
/gpfs/exfel/sw/calsoft/.pyenv/bin/activate
git clone ssh://git@git.xfel.eu:10022/detectors/pycalibration.git
git checkout 3.14.4
# Use this version for compatibility with Python 3.8.18
cd
pycalibration
pyenv shell 3.
8.18
pyenv shell 3.
11.9
python3
-m
venv .venv
source
.venv/bin/activate
python3
-m
pip
install
--upgrade
pip
Loading