Good way to flatten multiple python files for distribution?

I am writing a console application in python that will consist of several modules, each of which contains a couple of hundred lines of code.

For development, it would be nice to modulate the program, but for distribution, I like the idea of ​​publishing the program as one python script.

Are there any good scripts to smooth out multiple python modules?

I know that in the end I have to venture into a complicated mess, which is setuptools, dpkg, etc., but I am not yet ready to invest this effort.

+3
source share
2 answers

No code exists for this.

0
source

zip ( .pyc .pyo ) , , X.Y Python ( Z X.Y.Z , .. Python 2.6, 2.6.1, 2.6.2 ..). zipfile PYTHONPATH, , , .

Python ( X.Y), zipfile , .

+4

Source: https://habr.com/ru/post/1736922/


All Articles