Skip to content
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

The filename or extension is too long when probing #23

Open
mdavidsaver opened this issue Sep 14, 2022 · 2 comments
Open

The filename or extension is too long when probing #23

mdavidsaver opened this issue Sep 14, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mdavidsaver
Copy link
Owner

mdavidsaver commented Sep 14, 2022

Windows PVXS jobs for python 3.7+ have begun failing with FileNotFoundError: [WinError 206] The filename or extension is too long. A glance at a log suggests that this is triggered by passing a ludicrously long argument list to cl.exe. It seems like each compile() is appending a complete set of msvc include paths. So the first invocation has the list once, the second twice, the third repeats the list three times, and so on.

The Linux and OSX jobs don't show this. Neither do the MSVC jobs for py 3.5 and 3.6.

Maybe the consequence of a setuptools change?

@mdavidsaver mdavidsaver added the bug Something isn't working label Sep 14, 2022
@mdavidsaver mdavidsaver self-assigned this Sep 14, 2022
@mdavidsaver
Copy link
Owner Author

mdavidsaver commented Sep 14, 2022

This issue is triggered when ProbeToolchain() is used from within a setuptools Command (eg. the 'example/'), but not by my test_probe.py.

Further, it is something which effects a ProbeToolchain() instance create in setup.py before setup() is called.

Recent setuptools has added a CCompiler.include_dirs list as a class attribute. pypa/setuptools@9f9a3e5

@mdavidsaver
Copy link
Owner Author

Reported as pypa/setuptools#3591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant