Skip to content

Fix healpix_cxx package for 3 digit cfitsio versions and add version 1.19 for py-healpy#3873

Open
KiSchnelle wants to merge 4 commits intospack:developfrom
KiSchnelle:develop
Open

Fix healpix_cxx package for 3 digit cfitsio versions and add version 1.19 for py-healpy#3873
KiSchnelle wants to merge 4 commits intospack:developfrom
KiSchnelle:develop

Conversation

@KiSchnelle
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

@wdconinc wdconinc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these contributions. Some comments.

spec["libsharp"].prefix.lib
),
)
# Fix cfitsio version check broken by 3-part version numbers
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did the two-component releases of cfitsio define the MAJOR/MINOR macros? Does this filter_file need to be gated on cfitsio version too?


homepage = "https://healpy.readthedocs.io/"
pypi = "healpy/healpy-1.13.0.tar.gz"
pypi = "healpy/healpy-1.19.0.tar.gz"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI These changes are not necessary when adding versions. Spack derives patterns from this.

depends_on("c", type="build") # generated
depends_on("cxx", type="build") # generated
depends_on("fortran", type="build") # generated
depends_on("c", type="build")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is C needed (and was it before)? setup.py declares languages c++ only.

depends_on("py-cython", type="build", when="@1.15:")

depends_on("py-numpy@1.13:1", type=("build", "run"), when="@:1.14")
depends_on("py-numpy@1.13:", type=("build", "run"), when="@1.15:")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least right now this needs numpy 1.19 or newer. Can you verify the dependencies?

# Fix cfitsio version check for 3-part versions
fitshandle = FileFilter("healpixsubmodule/src/cxx/cxxsupport/fitshandle.cc")
fitshandle.filter(
r"int v_header\s*=\s*nearest<int>\(1000\.\*CFITSIO_VERSION\)",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same concern here.

depends_on("fortran", type="build")

depends_on("py-setuptools@3.2:", type="build")
depends_on("python@:3.10", when="@:1.14")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The complementary minimum python versions are missing, i.e. 3.10 for 1.19.

@wdconinc wdconinc self-assigned this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants