You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cython 3.0a5, which is required to build cherab-solps 1.2.0, does not work with Python 3.10. Attempting to build on Python 3.10 with Cython 3.0a5 results in many lvalue required as decrement operand errors.
In fact, we specify Cython 3.0a5 for cherab-solps to work around 2 separate bugs: Cython 0.x doesn't support PEP 420 namespaces (see cython/cython#2918) so we need to use Cython 3.0, but building Raysect (a Cherab dependency) with anything above 3.0a5 also causes issues (see raysect/source#373).
In fact we can build cherab-solps using a more recent alpha version of Cython, as long as raysect is built using 3.0a5 or below. It's fairly hard to arrive at this arrangement accidentally though, since cherab-solps wheels exist on all platforms for which raysect wheels already exist: if you're having to build cherab-solps then you're probably having to build raysect too. As such, setting the Cython version required for cherab-solps to one which also correctly builds raysect made sense, and didn't cause any problems until we started supporting Python 3.10 where there isn't a single verion of Cython which can build both packages.
Raysect 0.8.0 and later resolve this problem as there is a proper pyproject.toml describing the build dependencies, so it can be built in isolation using a suitable version of Cython. For cherab-solps versions which require raysect 0.8.0 or later we'll just specify the latest Cython 3.x package as a build dependency. But we can't do this for raysect 0.7.1 as it doesn't have a pyproject.toml.
In summary:
cherab-solps 1.2.1 and later will have wheels available for Python 3.10 on PyPI so most users of the latest release shouldn't need to build it at all.
For those who do need to build cherab-solps (for example, for development) when a raysect wheel isn't available from PyPI, the procedure is as follows:
Install Cython 0.29 and numpy (Raysect's build dependencies)
Install the required versions of Raysect and Cherab core using pip.
Update Cython to the latest 3.x version.
Install cherab-solps using pip, passing the --no-build-isolation flag to pip.
The text was updated successfully, but these errors were encountered:
Cython 3.0a5, which is required to build cherab-solps 1.2.0, does not work with Python 3.10. Attempting to build on Python 3.10 with Cython 3.0a5 results in many
lvalue required as decrement operand
errors.In fact, we specify Cython 3.0a5 for cherab-solps to work around 2 separate bugs: Cython 0.x doesn't support PEP 420 namespaces (see cython/cython#2918) so we need to use Cython 3.0, but building Raysect (a Cherab dependency) with anything above 3.0a5 also causes issues (see raysect/source#373).
In fact we can build cherab-solps using a more recent alpha version of Cython, as long as raysect is built using 3.0a5 or below. It's fairly hard to arrive at this arrangement accidentally though, since cherab-solps wheels exist on all platforms for which raysect wheels already exist: if you're having to build cherab-solps then you're probably having to build raysect too. As such, setting the Cython version required for cherab-solps to one which also correctly builds raysect made sense, and didn't cause any problems until we started supporting Python 3.10 where there isn't a single verion of Cython which can build both packages.
Raysect 0.8.0 and later resolve this problem as there is a proper pyproject.toml describing the build dependencies, so it can be built in isolation using a suitable version of Cython. For cherab-solps versions which require raysect 0.8.0 or later we'll just specify the latest Cython 3.x package as a build dependency. But we can't do this for raysect 0.7.1 as it doesn't have a pyproject.toml.
In summary:
--no-build-isolation
flag to pip.The text was updated successfully, but these errors were encountered: