Skip to content

Backport CYTHON_FORCE_REGEN=1 feature to 0.29#5307

Merged
scoder merged 1 commit intocython:0.29.xfrom
haampie:backport/CYTHON_FORCE_REGEN
Mar 29, 2023
Merged

Backport CYTHON_FORCE_REGEN=1 feature to 0.29#5307
scoder merged 1 commit intocython:0.29.xfrom
haampie:backport/CYTHON_FORCE_REGEN

Conversation

@haampie
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

scoder commented Mar 29, 2023

Thanks. Seems reasonable. And helpful.

@haampie haampie deleted the backport/CYTHON_FORCE_REGEN branch March 29, 2023 08:07
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.

3 participants