Page History
...
module load python
conda env create --name ps-0.1.1-py2 py3 -f env_create.yaml
source activate ps-0.1.1-py2py3
where the file env_create.yaml
contains the list of require packages.
Originally it is located in https://github.com/slac-lcls/relmanage/blob/master/env_create.yaml or env_create_py2.yaml
for python2.
Code Block | ||||
---|---|---|---|---|
| ||||
channels: - defaults - conda-forge dependencies: - python=23.76 - cmake - h5py - ipython - numpy - cython - matplotlib - mpi4py - nose - pyzmq - versioneer - requests |
Build
...
for python2.7
cd lcls2
export CRAYPE_LINK_TYPE=dynamic
...
export PYTHONPATH=$INSTDIR/lib/python2.7/site-packages
Build for python3.6
cd lcls2
export CRAYPE_LINK_TYPE=dynamic
./build_python3_psana.sh
export INSTDIR=`pwd`/install
export PYTHONPATH=$INSTDIR/lib/python3.6/site-packages
Run apps
python
> import psana
...
Overview
Content Tools