-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[FR] On Windows pyproject.toml
needs pre-processing of paths as linker flags from ext-modules
directive aren't handled correctly by linker
#4788
Comments
Thanks @skirpichev, as far as I understand the reason why the problem does not occur when using So I am reclassifying this issue as a feature request to implement some sort of dynamic processing of paths. |
pyproject.toml
needs pre-processing of paths on windows as linker flags don't passed correctly from ext-modules
directive (on Windows)
pyproject.toml
needs pre-processing of paths on windows as linker flags don't passed correctly from ext-modules
directive (on Windows)pyproject.toml
needs pre-processing of paths as linker flags from ext-modules
directive aren't handled correctly by linker
Exactly.
Well, docs says about include_dirs: "list of directories to search for C/C++ header files (in Unix form for portability)". So, I suspect this should work in a string form too. But the |
I suppose we would need something like There would be a couple of places where it would be possible to tackle this:
Lately, there has been some changes in Also the deeper the layer you go the more impactful the change is and covers more use cases. On the other hand if this is a controversial change, we might want to keep it in a very superficial layer (e.g. that affects only If you or any other member of the community has any proposal for the implementation please let us know also feel free to submit a PR to either Footnotes
|
setuptools version
75.6.0
Python version
3.13
OS
Window$
Additional environment information
No response
Description
I tried to switch my project to use new ext-modules directive, but without success:
diofant/python-gmp#124
It seems that linker flags passed incorrectly. Here is a fragment from build log:
As you can see, setuptools pass
/LIBPATH:.local/lib
(that's come fromlibrary-dirs
of the ext-modules directive). But linker doesn't recognize it, perhaps because it doesn't follows Windows path convention with\
separators. (But note that compiler works with addedinclude-dirs
.)Expected behavior
Successful build:)
How to Reproduce
I did a draft pr to show problem in CI:
diofant/python-gmp#124
Output
Sorry, I can't reproduce that locally.
The text was updated successfully, but these errors were encountered: