[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: multiple modules in one source



On 14 December 2014 at 15:34, Brian May <brian@microcomaustralia.com.au> wrote:
Not sure calling it multiple distinct Python packages is correct, currently there is only one setup.py, and hence only one egg file produced.

e.g. package contains


setup.py
module1/__init__.py
module1/something.py
module2/__init__.py
module2/somethingelse.py

To be precise with Python terminology, an importable folder (typically with an __init__.py, but there are exceptions since PEP 420) is a package, a single importable file is a module, and the thing that you get from PyPI as a single unit is a distribution, I believe. In practice, distributions are almost always called packages as well.

Thomas

Reply to: