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

V0.8.1 buildfix #428

Merged
merged 4 commits into from
Jan 4, 2024
Merged

V0.8.1 buildfix #428

merged 4 commits into from
Jan 4, 2024

Conversation

jacklovell
Copy link
Contributor

@jacklovell jacklovell commented Dec 11, 2023

Cython 3.0 release introduces breaking changes. Pin to earlier Cython until the code has been updated for compatibility.

Make a new post1 release of this so downstream packages will pick up the working version of 0.8.1.

Also switch from Travis to Github actions to ensure builds are still error free.

Added a small snippet of code to get pip and PyPA build to use multiple CPUs to build this wheel by default, which greatly speeds up building release wheels. This is inspired by a similar addition which was made to Cherab.

Cython 3.0 release introduces breaking changes. Pin to earlier Cython
until the code has been updated for compatibility.

Make a new post1 release of this so downstream packages will pick up
the working version of 0.8.1.
When installing with pip or PyPA's `build` utility, , the `-j` option
for parallel builds is not passed by default. This increases the build
time on systems where wheels need to be built, e.g. for releases or
on systems where no pre-built wheel is available.

This commit introduces a modified `build_ext` command which by default
parallelises over all available CPUs, with an optional override using
the `RAYSECT_BUILD_JOBS` environment variable if for any reason the
number of build processes needs to be controlled manually.
@jacklovell
Copy link
Contributor Author

Manylinux wheels built from this PR are available on TestPyPI: https://test.pypi.org/project/raysect/0.8.1.post1. Wheels are available for Python 3.7 through to 3.12, and there is also an sdist which can be downloaded and installed manually to verify it installs without error. I've tested all 6 Python versions in virtual environments: the wheel installs fine and all unit tests pass. I've also tested the sdist on Python 3.12, and again it builds and passes all unit tests without error.

Wheels for Python 3.7 to 3.9 can be built using manylinux2010, as
there are binary wheels of oldest-supported-numpy available for these
versions. For 3.10 onwards manylinux2014 is required for numpy binary
wheels. Building numpy from source in the manylinux containers is not
viable.

There are now two scripts, one for each manylinux version, which will
build wheels for all upstream-supported Python versions. These can be
run as-is: info is in the first few lines of these files. Also, the
dev notes on building wheels wtih manylinux have been updated to
reference these files.
@CnlPepper CnlPepper merged commit 20f5725 into raysect:master Jan 4, 2024
@jacklovell jacklovell deleted the v081_buildfix branch August 2, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants