Skip to content

Python 3 test period

giadarol edited this page Nov 28, 2019 · 27 revisions

This page describes how to download and install the Python 3 version in the test period Dec 2019 - Jan 2020. After this test period the Python 3 version will become the default and the only one to be maintained.

Activate your python 3 installation

source ~/miniconda3/bin/activate 

Clone tools from repositories

git clone https://github.com/pycomplete/PyECLOUD
git clone https://github.com/pycomplete/PyPIC
git clone https://github.com/pycomplete/PyKLU
git clone https://github.com/pycomplete/PyHEADTAIL
git clone https://github.com/pycomplete/PyNAFFLIB
git clone https://github.com/pycomplete/PyPARIS
git clone https://github.com/pycomplete/PyPARIS_sim_class
git clone https://github.com/pycomplete/PyPARIS_CoupledBunch_sim_class

Checkout Python 3 version

(needed only during test period, in which the python 2 version remains the default)

cd PyECLOUD
git checkout v8.2.0_python3 
cd ..

cd PyPIC
git checkout v2.4.4_python3 
cd ..

cd PyHEADTAIL
git checkout v1.13.15_python3
cd .

cd PyPARIS
git checkout v2.4.1_python3
cd ..

cd PyPARIS_sim_class
git checkout v1.2.4_python3
cd ..

cd PyPARIS_CoupledBunch_sim_class
git checkout v1.0.0_python3
cd ..

PyKLU is natively compatible with Python 3

Compile

cd PyECLOUD
./setup_pyecloud
cd ..

cd PyPIC
make
cd ..

cd PyKLU
./install
cd ..