Skip to content

Commit

Permalink
Merge pull request #187 from israelmcmc/python3.11install
Browse files Browse the repository at this point in the history
Fix installation for Python 3.11
  • Loading branch information
israelmcmc authored Jul 9, 2024
2 parents 65706f7 + bcb5313 commit 1bdbdd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ Optional but recommended step: install a conda environment::
conda create -n <cosipy_env_name> python=3.10 pip
conda activate <cosipy_env_name>

Note: currently cosipy is not compatible with Python 3.11 and 3.12, mainly due to
installation issues with a dependency (astromodels, see issues `#201 <https://github.com/threeML/astromodels/issues/201>`_ and `#204 <https://github.com/threeML/astromodels/issues/204>`_)
Note: currently cosipy is not compatible with Python 3.12 due to
installation issues with dependencies (`threeML <https://github.com/threeML/threeML/pull/631>`_ and `astromodels <https://github.com/threeML/astromodels/issues/204>`_)

Install with pip::
pip install cosipy
pip install --use-pep517 cosipy

Note: ``--use-pep517`` is a temporary workaround to install `astromodels with new setuptools versions<https://github.com/threeML/astromodels/issues/209>`_.

From source (for developers)
----------------------------
Expand All @@ -35,7 +36,7 @@ Do the following (preferably inside a conda environment)::

git clone [email protected]:cositools/cosipy.git
cd cosipy
pip install -e .
pip install --use-pep517 -e .

The flag ``-e`` (``--editable``) allows you to make changes and try them without
having to run ``pip`` again.
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
install_requires = ["histpy",
"mhealpy",
"scoords",
'astromodels',
'threeml',
'astromodels>=2.4.2',
'threeml>=2.1.2',
'matplotlib<=3.8.3',
'numba<=0.58.0',
'numba',
'yayc',
'awscli',
'scipy<=1.13.0'],
Expand Down

0 comments on commit 1bdbdd9

Please sign in to comment.