Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installation for Python 3.11 #187

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'],
description = "High-level analysis for the COSI telescope data",
Expand Down
Loading