-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Errors when using "setup.py bdist_wheel" with pyproject.toml #435
Comments
Hi @f-cozzocrea! Thank you again for this issue. |
Thanks @fangerer, that makes sense. I have a few thoughts about that.
|
I think point 1 above is overstated. We don't want to compile these for anyone -- they're intended to just be extra C utilities provided for convenience. Extensions should compile them themselves if they use them. I would vote that we copy the extra sources into the build folder during the build, but also add an option to not copy them in. For this matches our intention most closely -- "here are some useful C utilities that you can include in your extension". Perhaps the copying could use @fangerer @f-cozzocrea Does my reasoning make sense to you? If there is some standard way to handle this, it would be good to know, but keeping what little simplicity we can in the |
@hodgestar I agree with your reasoning. When I say "Python community", I just mean the outcomes of packaging PEPs (like 517) which disallow absolute paths. I think copying by default in a simple and robust way makes the most sense. |
@f-cozzocrea Woot. I agree that the banning by default was probably worth it to avoid people accidentally depending on external files, even if it makes things a bit more complex for us. |
Sounds good to me as well. Adding a bit more background on #310: This issue exists because we have seen compilation problems with some package (I don't remember which one). Since we are adding the HPy helper sources, it might happen that the source code is not compatible with certain compiler options. The idea was to build a static lib with our configuration. |
I'm seeing an issue when whenever I'm trying to install an extension with the
setup.py bdist_wheel + pip install
method with a very basic pyproject.toml file that looks like this:This is the error output:
I've created a basic repository here with steps to reproduce the errors: https://github.com/f-cozzocrea/hpy-pep517
--- System info ---
Hpy version: 0.9.0rc2
CPython version: 3.10
OS: Ubuntu 22.04
The text was updated successfully, but these errors were encountered: