sdist

python setup.py sdist only including .py source from top level module

python setup.py sdist only including .py source from top level module Question: I have a setup.py: from setuptools import setup setup( … packages=[‘mypackage’], test_suite=’mypackage.tests’, … ) python setup.py sdist creates a file that includes only the source modules from top-level mypackage and not mypackage.tests nor any other submodules. What am I doing wrong? Using python …

Total answers: 3

What is the difference between an 'sdist' .tar.gz distribution and an python egg?

What is the difference between an 'sdist' .tar.gz distribution and an python egg? Question: I am a bit confused. There seem to be two different kind of Python packages, source distributions (setup.py sdist) and egg distributions (setup.py bdist_egg). Both seem to be just archives with the same data, the python source files. One difference is …

Total answers: 2