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
Hi all, now that there's ongoing work on making Cython work with the free-threaded build of CPython, it'd be nice for the other projects that are trying to do the same (NumPy, SciPy, scikit-learn, etc.) to be able to install Cython nightly.
The extra load should be minimal, since we only plan to upload the non-compiled wheel, which means we'll only upload one wheel per version, so no platform-specific wheels.
when you say non compiled wheel, does it mean someone could just install main with pip? Or is there something specific to do?
I'm not sure if I understand the question, but my understanding is this (correct me if I'm wrong):
Cython basically ships two different types of wheels. Firstly, note that Cython, the compiler, is basically a pure-Python package. One set of wheels, where the Python modules of Cython themselves get compiled with Cython and therefore the wheels have to be platform and version-specific. Additionally, there's a version where the Python sources are shipped themselves without any sort of compilation, therefore that is a py3-none-any wheel. The only difference between the two is basically performance, like @da-woods described on the Cython issue.
I think this sounds good, so assuming no one has objections, please complete the missing items from the checklist to get started.
Since I'm not a maintainer of Cython, it'd be best if @scoder or @da-woods did this. I'm just helping set this up and I'll open a Cython PR with the needed CI shortly.
To clarify, the original intent of this anaconda channel is to provide a place where wheels of difficult projects to build (in our ecosystem) can be hosted. We are in a better situation as our quota was increased, but it still good if we are conscious about that.
TL;DR if someone can just do pip install git+https://github.com/... then to me there is little advantage to use this conda channel.
That being said, considering the importance of Cython in our ecosystem, I would personally don't mind 😃
TL;DR if someone can just do pip install git+https://github.com/... then to me there is little advantage to use this conda channel.
or NO_CYTHON_COMPILE=true pip install git+https://github.com/... if they don't want to spend time building Cython (just emphasising this because I think it makes sense for people who just want to test the current master).
But yes - now you mention it I'm slightly unclear what a wheel gives that a link to github doesn't.
I'm definitely keen to encourage/help people test with the latest version of Cython so I'll go through the steps above if people do want a wheel.
now you mention it I'm slightly unclear what a wheel gives that a link to github doesn't
FWIW I think that giving people the ability to do pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython in their CI without having to install from master directly (probably a few more breakages than wheels built twice a week, plus people generally avoid it) and also not pin to a specific commit that they'll have to go back and change afterwards will encourage them to test early (both Cython and the free-threaded build itself).
@lysnikolaou I've got everything setup on the backend now, so if you can get the API token and then a workflow to upload the nightly wheels you're good to go. 👍
@lysnikolaou if you have an Anaconda cloud account I can add you to the team as well, which would be preferred so that package teams on the nightly index don't have just a single maintainer.
Activity
tupui commentedon Jun 3, 2024
Hi @lysnikolaou, when you say non compiled wheel, does it mean someone could just install main with
pip? Or is there something specific to do?Otherwise, in general I am +1 for Cython.
If your request goes through, you will need to provide us with anaconda handles of the maintainers you want to have in the team over there.
matthewfeickert commentedon Jun 3, 2024
@lysnikolaou I think this sounds good, so assuming no one has objections, please complete the missing items from the checklist to get started.
ANACONDA_ORG_UPLOAD_TOKENcythonnightly wheel for me to upload to create the package in the registrycythonteam "Group" on https://anaconda.org/scientific-python-nightly-wheelsscientific-python-nightly-wheels/cythonto thecythonteam "Group"If you'd also like to use the
scientific/upload-nightly-actionGitHub Action please check out the action repo's README. If you need to collect wheels from different CI jobs, consider creating a new GitHub Actions workflow with logic similar tomatplotlib's orAwkward's.If you have any questions please just ask here!
lysnikolaou commentedon Jun 3, 2024
I'm not sure if I understand the question, but my understanding is this (correct me if I'm wrong):
Cython basically ships two different types of wheels. Firstly, note that Cython, the compiler, is basically a pure-Python package. One set of wheels, where the Python modules of Cython themselves get compiled with Cython and therefore the wheels have to be platform and version-specific. Additionally, there's a version where the Python sources are shipped themselves without any sort of compilation, therefore that is a
py3-none-anywheel. The only difference between the two is basically performance, like @da-woods described on the Cython issue.Since I'm not a maintainer of Cython, it'd be best if @scoder or @da-woods did this. I'm just helping set this up and I'll open a Cython PR with the needed CI shortly.
tupui commentedon Jun 3, 2024
To clarify, the original intent of this anaconda channel is to provide a place where wheels of difficult projects to build (in our ecosystem) can be hosted. We are in a better situation as our quota was increased, but it still good if we are conscious about that.
TL;DR if someone can just do
pip install git+https://github.com/...then to me there is little advantage to use this conda channel.That being said, considering the importance of Cython in our ecosystem, I would personally don't mind 😃
da-woods commentedon Jun 3, 2024
or
NO_CYTHON_COMPILE=true pip install git+https://github.com/...if they don't want to spend time building Cython (just emphasising this because I think it makes sense for people who just want to test the current master).But yes - now you mention it I'm slightly unclear what a wheel gives that a link to github doesn't.
I'm definitely keen to encourage/help people test with the latest version of Cython so I'll go through the steps above if people do want a wheel.
matthewfeickert commentedon Jun 3, 2024
That's enough in my mind, so please feel free to proceed.
lysnikolaou commentedon Jun 4, 2024
FWIW I think that giving people the ability to do
pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cythonin their CI without having to install from master directly (probably a few more breakages than wheels built twice a week, plus people generally avoid it) and also not pin to a specific commit that they'll have to go back and change afterwards will encourage them to test early (both Cython and the free-threaded build itself).da-woods commentedon Jun 4, 2024
Right - I've created an Anaconda account with username da-woods.
matthewfeickert commentedon Jun 5, 2024
@lysnikolaou I've got everything setup on the backend now, so if you can get the API token and then a workflow to upload the nightly wheels you're good to go. 👍
lysnikolaou commentedon Jun 6, 2024
Thanks @matthewfeickert! @da-woods Will you please add the repository secret so that we can test cython/cython#6229?
matthewfeickert commentedon Jun 6, 2024
@lysnikolaou if you have an Anaconda cloud account I can add you to the team as well, which would be preferred so that package teams on the nightly index don't have just a single maintainer.
lysnikolaou commentedon Jun 6, 2024
@matthewfeickert The second person should probably be @scoder. I'm okay to be added but I feel that that decision should lie with the maintainers.
matthewfeickert commentedon Jun 6, 2024
Thanks. 👍 @scoder do you have an Anaconda Cloud account?
matthewfeickert commentedon Jun 7, 2024
PR cython/cython#6229 is in and wheels got uploaded, so closing as everything looks good. 👍