From c95e0288b3c82fe2902ab5eed9e846ec147bed8c Mon Sep 17 00:00:00 2001 From: Israel Martinez Date: Thu, 6 Jun 2024 15:26:12 -0400 Subject: [PATCH 1/3] Require a not-so-old 3ML version, which fixes the installation with not-so-old python versions --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3905341e..2670df35 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ "mhealpy", "scoords", 'astromodels', - 'threeml', + 'threeml>=2.1.2', 'matplotlib<=3.8.3', 'numba<=0.58.0', 'yayc', From 877e36de2e89c038823daed7636c82ccb2cddf52 Mon Sep 17 00:00:00 2001 From: Israel Martinez Date: Thu, 6 Jun 2024 15:47:45 -0400 Subject: [PATCH 2/3] Update installation instructions with workarounds --- docs/install.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/install.rst b/docs/install.rst index 4d29be56..4fcc1dab 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -9,13 +9,14 @@ Optional but recommended step: install a conda environment:: conda create -n python=3.10 pip conda activate -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 `_ and `#204 `_) +Note: currently cosipy is not compatible with Python 3.12 due to +installation issues with dependencies (`threeML `_ and `astromodels `_) 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`_. From source (for developers) ---------------------------- @@ -35,7 +36,7 @@ Do the following (preferably inside a conda environment):: git clone git@github.com: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. From bcb5313a6de5284840d51a0ef224a250f0a5f023 Mon Sep 17 00:00:00 2001 From: Israel Martinez Date: Mon, 24 Jun 2024 14:26:27 -0400 Subject: [PATCH 3/3] Require astromodels >=2.4.2 to fix this issue https://github.com/threeML/astromodels/issues/201. Also, interpolation now fixed this other issue https://github.com/EconForge/interpolation.py/pull/112, which allows to remove the restriction on numba (which is needed for astromodels 2.4.2) --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2670df35..c124d5e6 100644 --- a/setup.py +++ b/setup.py @@ -25,10 +25,10 @@ install_requires = ["histpy", "mhealpy", "scoords", - 'astromodels', + '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",