Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating tar.gz in dist folder with python setup.py install

Tags:

python

pypi

I have a project for which I want to create a tar.gz with python setup.py install.

Problem is, I only get egg files in my dist/ folder when running python setup.py install. I need the project.tar.gz file so that I can easily make it installable from conda.

How do I make python setup.py install create a tar.gz (I do not need any egg files, really).

What I ultimately want is a tar.gz archive showing on pypi with a download link and md5, which I used to get before the PYPI update.

like image 524
The Unfun Cat Avatar asked Apr 21 '26 17:04

The Unfun Cat


1 Answers

python setup.py sdist creates .tar.gz source archive and doesn't create eggs. That's probably what you want instad of python setup.py install.

like image 74
phd Avatar answered Apr 23 '26 05:04

phd