-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
trying mypyc on Cython-3.1.0a1 with Python-3.13.0b1 I get a "this header requires Py_BUILD_CORE define" #119203
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
Comments
here it was written zephyrproject-rtos/windows-curses#26 (comment) "You can't use Py_BUILD_CORE as it's ONLY usable when building the CPython itself " so maybe the current way I got free-threading is the problem ? |
coming from this ? gh-85283: If Py_LIMITED_API is defined, undefine Py_BUILD_CORE Apparently same error message with python-3.13.0b1 "standard" |
trying the fibonacci cython tutorial https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html#fibonacci-fun
|
well it seems cython is far from ready at this point, so maybe it's too early to complain ? |
In 3.13 many functions and some internal headers were moved to be private. 3.12 version without requiring 3.13 version requiring Mypyc and I believe Cython need to be updated before they will work with Python 3.13, so this error is a bug in mypyc/Cython |
Please report this issue to mypyc and/or Cython. |
I agree with Victor that this is better reported to mypyc and/or Cython. I'm a bit puzzled by the issue though: Cython and mypyc are both Python->C transpilers; it'd be very odd to try to build Cython with MyPyC as the title suggests (it expects to either be built with itself, or just run as Python code). The current master branch of Cython does work with Python 3.13b1 (both regular build and the free-threading build). It isn't necessarily thread-safe so you can get into trouble if you try to use multiple threads. But for a simple, single-threaded program like the Fibonacci example it runs fine (and I've tested that and confirmed it). |
When I import the compiled Fibonacci example of cython pages, my python REPL just quit.. are you sure free-threading works on windows with cython-3.1.0a0 ? (Stolen from CI) Applying an end-user procedure ? Devil can be in the detail of a end-user procedure done wrong |
If it was possible, may you publish a pure-wheel of the working cython ? An a1 ? did try with a0 pure-wheel of May 9th and may 16th... maybe it's too much manual procedure, but failed at both |
Bug report
Bug description:
on python-3.13.0b1 on Windows 11 non-english
generates
CPython versions tested on:
3.13
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: