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

Backport CYTHON_FORCE_REGEN=1 feature to 0.29 #5307

Merged
merged 1 commit into from Mar 29, 2023

Conversation

haampie
Copy link
Contributor

@haampie haampie commented Mar 10, 2023

In the context of #5089, it seems like
the general opinion is that it's not a good idea to ship generated sources in
Python package release tarballs.

Right now there are tons of Python package releases that do include generated
C sources, and they may be generated from Cython versions that were not forward
compatible or had bugs. It would make sense to re-cythonize those packages with
the same minor version of cython (typically 0.29.x), without having to patch
force=True into each and every setup.py script, especially since setup.py clean
is not generally defined as a command. Notice that in some cases certain packages
simply won't update their tarballs and release bugfix releases, so it would be good
to have this option.

Therefore, backport CYTHON_FORCE_REGEN from 3.x -> 0.29.x.

…HON_FORCE_REGEN=1, e.g. from external build systems.
@haampie haampie changed the title Backport b859cf2bd72d525a724149a6e552abecf9cd9d89 to 0.29 Backport CYTHON_FORCE_REGEN=1 feature to 0.29 Mar 10, 2023
@haampie
Copy link
Contributor Author

haampie commented Mar 13, 2023

@scoder is it possible to backport this? I know it's not a Cython bugfix, but being able to reliably re-cythonize older release tarballs with broken generated sources would be very helpful.

Is CI failing as a result of this PR?

@da-woods
Copy link
Contributor

Is CI failing as a result of this PR?

No. The failures are known failures for the 0.29.x branch

@scoder scoder added this to the 0.29.34 milestone Mar 29, 2023
@scoder scoder merged commit a121544 into cython:0.29.x Mar 29, 2023
@scoder
Copy link
Contributor

scoder commented Mar 29, 2023

Thanks. Seems reasonable. And helpful.

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.

None yet

3 participants