Closed jpl-jengelke closed 10 months ago
The following command (or similar) should allow the install to proceed by disabling build isolation:
pip3 install --no-cache-dir --no-build-isolation -c constraints.txt ultranest==3.5.6
... with the constraints.txt
file set to ...
Cython==0.29.36
Posted here for posterity.
Thank you John, that is helpful!
Build failures with Cython 3.x aren't unusual, see https://github.com/cython/cython/issues/5305. That's because amongst other very low-level changes, Cython used different compiler settings (language level 3 vs. language level 2). So it was not unique to experience a compile failure.
I just also want to point out that the changes are fairly extensive (version 0.x to 3.x) so any detailed testing that can be completed would be beneficial to validate with the updated library.
You could always pin Cython to a specific version in the pyproject.toml
(Cython==0.29.36
) if there was a very bad issue discovered but that won't repair previously released versions and also many of the Cython changes (especially those that support newer Python versions) look great.
I am closing this for now, please reopen if there is more that should be done.
Description
Due to the issue reported about installation failures post Cython update, recent versions of Ultranest do not install under normal circumstances. This issue is detailed in #102. In fact, due to the low-level nature of
pyproject.toml
metadata and Cython set in therequires
block, it appears that no version between 3.4.3 (whenpyproject.toml
was added) and 3.6.1 will install.What I Did