question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sdist with --dist-dir on Windows produces incorrect archive

See original GitHub issue

@jaraco

Using a relative path works as expected (python setup.py sdist --dist-dir dist)

good

however using an absolute path (python setup.py sdist --dist-dir C:\Users\Ofek\Desktop\mypkg\dist) includes the entire path structure starting at the drive/root

bad

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jaracocommented, Mar 12, 2021

Setuptools can still help by making sure that the fix is included in pypa/distutils and merged with this project. Indeed, that will be necessary to avoid a regression for users using SETUPTOOLS_USE_DISTUTILS=local or future versions that rely on adopted distutils exclusively.

1reaction
ArtemSBulgakovcommented, Dec 24, 2020

My fix for the tarfile module is included in Python 3.8.7 and 3.9.1. This issue can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

setup.py sdist creates an archive without the package
everything looks fine, and from my understanding the package should now be archived in the dist folder. But when I open the dist...
Read more >
Vzít ven sliz detekce python setup py sdist Nabídka dodávka ...
How to make the Package in Python | by Ankit Kumar Rajpoot | DataDrivenInvestor. sdist with --dist-dir on Windows produces incorrect archive ·...
Read more >
Distributing Python Modules - MIT
python setup.py sdist which will create an archive file (e.g., tarball on UNIX, ZIP file on Windows) containing your setup script, ...
Read more >
4. Creating a Source Distribution — Python 3.11.1 ...
As shown in section A Simple Example, you use the sdist command to create a ... sdist creates the archive of the default...
Read more >
What Are Python Wheels and Why Should You Care?
The tar.gz tarball that pip retrieves is a source distribution, or sdist ... A Python .whl file is essentially a ZIP ( .zip...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found