Trivial packaging in Python
In Python, it is easy to create a package to be imported by just adding a subdirectory to the code. While this is simple, it can be adequate initially, as the subdirectory can be copied. For example, the code can be added directly to the source control system, or it can even be installed by compressing the code and uncompressing it in place.
This is not a long-term solution, as it won't handle multiple versions, dependencies, and so on, but it can work in some cases as a first step. At least initially, all the code to be packetized needs to be stored in the same subdirectory.
The structure of the code for a module in Python can be worked out as a subdirectory with a single entry point. For example, when creating a module called naive_package
with the following structure:
└── naive_package
├── __init__.py
├── module.py
└── submodule...