How to organize the directory used for the Python distribution module?

I am creating a Python module. My question is how can I organize the distribution so that it has a directory structure similar to most standard Python modules. Is there something similar to a MakeFile in Python that has setup.py filename?

Directory structure:

 pymodule_x-y.tar.gz/ + pymodule/ + __init__.py + pymodule.py + setup.cfg + setup.py + test/ + test_case.py 
+4
source share
1 answer

You have several options, including distribution of egg files, archives, etc. An excellent resource for distributing Python packages is The Hitchhiker Guide to Packaging (still under development, but good nonetheless).

+7
source

All Articles