You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
creates a tar.gz. When unpacking this tar.gz on Windows, it contains the complete local path to this distribution folder. This can't be correct.
The same problem is also reported in #1185, but was closed, as it couldn't be reproduced.
Do NOT test the tar.gz with "python -m tarfile", as this unpacks the tar.gz at once, and therefore showing the correct content. To reproduce, unpack the tar.gz file with 7zip. The "tar" archive contains the correct content. But the "gz" archive provides the full local path.
If you use a relative path, just this relative path is set into the "gz" archive: python sdist --dist-dir ./dist/folder
Long term short: Whatever is put as dist-dir, the complete path is saved in the tar.gz file.
Expected:
We should not provide local data in distributions
There shouldn't be any pathes, the 'gz' should only contain the 'tar' file
Environment Details
Windows 10 64bit
Python 3.8.2
Setuptools 46.4.0
The text was updated successfully, but these errors were encountered:
Do I understand correctly that there is no undesirable user-facing behavior, that the only problem is the leaking of local paths in the gzip file? I do agree it would be nice not to leak that information.
I don't see anything in setuptools that enacts the undesirable behavior. Probably the .tar.gz is created in distutils, so it may not be worth trying to tackle this until distutils is incorporated.
Uh oh!
There was an error while loading. Please reload this page.
Building a project with setuptools and a setup.py with:
python setup.py sdist --dist-dir C://local/path/to/my/dist/folder
creates a tar.gz. When unpacking this tar.gz on Windows, it contains the complete local path to this distribution folder. This can't be correct.
The same problem is also reported in #1185, but was closed, as it couldn't be reproduced.
Do NOT test the tar.gz with "python -m tarfile", as this unpacks the tar.gz at once, and therefore showing the correct content. To reproduce, unpack the tar.gz file with 7zip. The "tar" archive contains the correct content. But the "gz" archive provides the full local path.
If you use a relative path, just this relative path is set into the "gz" archive:
python sdist --dist-dir ./dist/folder
Long term short: Whatever is put as dist-dir, the complete path is saved in the tar.gz file.
Expected:
Environment Details
The text was updated successfully, but these errors were encountered: