-
Notifications
You must be signed in to change notification settings - Fork 55
Compilation Failures with Py_DEBUG enabled #419
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
no we shouldn't |
So, you would rather your library not work with Py_DEBUG or are you telling me there is a better fix that you would like to implement? |
it works fine for me -- please describe your actual use case instead of jumping to a solution |
|
|
I moved to a debug version of python to debug some code by compiling with --with-pydebug. When I did, libsass failed to compile when I ran poetry install for my application with the error above. I am unable to run my application without it, which means I cannot do the debugging I need to do, which is blocking me from doing my job. I was able to fix this issue with the PR I submitted. I am running the latest release of Python 3.8 on Alpine Linux. |
you're free to fork 👍 this isn't a problem in python3.10+ so I don't want to carry code specifically for old pythons |
There are still almost 2 years of support for Python 3.8 and another year past that for 3.9 and your library works with neither under pydebug, so it's disappointing that you are cutting off support for versions that are supported for a long time. Especially when it's a 4 line change (one being a comment). I've updated my change to look for versions now too, so it will work the way you want under 3.10 and will now work under pydebug under 3.9 and below, which will help folks who aren't bleeding edge (like most companies in the world), but it sounds as if that is not important to you.
|
it's not "just a 4 line change" -- you're introducing a deprecated library for a niche-at-best use case that we don't test and don't support. your attitude is not appreciated and additionally, neither you nor your company are sponsoring development |
Py_DEBUG and Py_LIMITED_API are not compatible, so compilation fails when Py_DEBUG is enabled.
We should add a check for Py_DEBUG and make sure we do not use the limited api if it is in place.
The text was updated successfully, but these errors were encountered: