-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Allow optional compilation of C extensions #2330
Comments
If this is the desired behaviour, wouldn't it be cleaner and more explicit to wrap the build step in a try catch within the |
Indeed, and that's what we ended up doing. Still a workaround though, so we'll be happy to eventually see official support of non-Python extensions in Poetry. |
Fair enough. Within the frame of current implementation, I'd consider that the solution for now. That said, we should consider this if we end up further integrating support for C extensions. |
Closing as duplicate of #1351 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This issue is prompted by a suggestion:
Feature Request
This is in reference to issue #11. The tinydecred project uses Poetry, and we're trying to add a Cython-generated extension to speed up the code in one of the Python files, using the undocumented feature mentioned in issue #11.
Here's the
build.py
file we're using:A problem we have is that we'd like to ignore the error that happens if the developer does not have a C compiler installed and they execute the
poetry install
command (example).(Ignoring such errors is the correct behavior in this case because the C extension is generated by Cython from a Python file and a matching
.pxd
file. If the compiled dynamic library is not there, the interpreter will just use the Python file.)Thanks.
The text was updated successfully, but these errors were encountered: