Open jonas-hagen opened 2 years ago
Hi @jonas-hagen,
Sorry for the delay in responding to this issue! This is a tricky one, I don't currently have access to a windows machine to test on but I will in the coming week or two. An example repository that you can consistently reproduce with would be extremely helpful for debugging, if you have one handy.
When creating a shiv package, the path
site-packages\build\lib\build\lib\...
is repeated multiple times and ends up being very long:\site-packages\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\build\lib\mytools\
Versions: shiv 1.0.1 and python 3.10 Command used to create package:
shiv -e mytool.cli:cli -o mytool.pyz .
Then, when executing the archive we experience some strange problems only on Windows systems which are configured in French language. Other systems we have at hand (German and English) do not show this behavior and the shiv package runs as expected. Python version (and python installation) is the same on all systems.
This is the error we get on French systems:
We think this path should not be repeated in the first place. Where does it come from? What should
\site-packages\build\lib
actually contain? It is not present in my virtual environment (\site-packages\build
is present).