Closed JamesTheAwesomeDude closed 4 months ago
Problem is that MSVC doesn't support long filepaths. (Like, totally doesn't support them, even with a registry entry.)
set "TMPDIR=C:\temp"
or similar before trying to install./IMPLIB
Other than better error messages, there's basically nothing we can do about this.
Gonna go ahead and close this issue as Unfixable on account of:
Setuptools has already been pinged about mitigating this
#13 is already tracking the better error messages
At least the CI builds are working around this issue for 99% of users
Technically, I guess we could fix this ourselves by rolling our own implementation of setuptools._distutils.msvccompiler
? 🥴
I'm not up for figuring out how to do that at the moment, though; just tracing the tangled mess of codepaths to diagnose the issue in the first place was a big enough task.
(Open to PRs, just not planning to do it myself in the forseeable future.)
Quick fix:
More information:
#issuecomment-1943083629
https://discuss.python.org/t/inconsistently-getting-error-1104-while-building-a-clib-cffi-extension-on-windows/44077/5
Original issue:
If I *manually download the sdist from pypy*, then run
pip install pypqc-0.0.6.post1.tar.gz
on the downloaded tarball itself, this error does not arise; for some reason beyond my comprehension, it only arises when you runpip install pypqc
💢