@@ -19,6 +19,12 @@ Install the Python development package for your OS. For example, using yum:
1919
2020* ``sudo yum install python3-devel ``
2121
22+ Source download
23+ ---------------
24+ Download the latest version of AT:
25+ ``$ git clone https://github.com/atcollab/at.git ``
26+
27+
2228Installation (all platforms)
2329----------------------------
2430
@@ -30,9 +36,18 @@ It is easiest to do this using a virtualenv. inside pyat:
3036
3137Then:
3238
33- * ``source venv/bin/activate # or venv\Scripts\activate on Windows ``
34- * ``pip install -r requirements.txt ``
35- * ``pip install -e . ``
39+ * activate the virtual environment:
40+
41+ ``source venv/bin/activate # or venv\Scripts\activate on Windows ``
42+ * make sure you have a recent pip installer:
43+
44+ ``pip install --upgrade pip ``
45+ * Go to the pyat root directory:
46+
47+ ``cd <atroot>/pyat ``
48+ * install AT:
49+
50+ ``pip install -e . ``
3651
3752Finally, you should be able to run the tests:
3853
@@ -58,17 +73,17 @@ recompiled. To force recompilation, remove the build directory:
5873Any changes to .py files are automatically reinstalled in the build, but to
5974ensure any changes to .c files are reinstalled rerun:
6075
61- * ``python setup.py develop ``
76+ * ``pip install -e . ``
6277
63- If you get strange behaviour even after running setup.py develop again, then
78+ If you get strange behaviour even after running pip install develop again, then
6479running the following, inside pyat, should fix it:
6580
6681* ``rm -rf build ``
6782* ``find at -name "*.pyc" -exec rm '{}' \; ``
6883* ``find at -name "*.so" -exec rm '{}' \; ``
69- * ``python setup.py develop ``
84+ * ``pip install -e . ``
7085
71- N.B. setup.py develop needs to be run with the same version of Python (and
86+ N.B. `` pip install -e . `` needs to be run with the same version of Python (and
7287numpy) that you are using to run pyAT.
7388
7489Releasing a version to PyPI
@@ -91,12 +106,10 @@ For testing any version that you have installed, the simple snippet in
91106``README.rst `` is sufficient.
92107
93108* Decide the Python versions that should be supported in the release
94- * Set these Python versions in setup.py
95- * Set at least these Python versions as python-version in .github/workflows/python-tests.yml
109+ * Set these Python versions in `` python_requires `` in `` setup.cfg ``
110+ * Set at least these Python versions as `` python-version `` in `` .github/workflows/python-tests.yml ``
96111* Determine the minimum Numpy version that is required for those Python versions
97- * Set this numpy version in install_requires in setup.py
98- * Set this numpy version in requirements.txt
99- * Update the pyat version in setup.py to x.y.z
112+ * Set this numpy version in ``install_requires `` in ``setup.cfg ``
100113* Push a tag ``pyat-x.y.z `` to Github
101114
102115If all goes well, there will be a build of "Build and upload wheels and sdist"
0 commit comments