The following command builds a wheel for your project.
poetry buildDependencies are listed in the METADATA file inside the wheel. You can see the dependencies by extracting this file, as the wheel file is just a zip. See the references below.
Wheels can be installed using :
- pip install
or, to install in a specific directory
- pip install --target >
In this case you can zip the target directory and distribute it as a zip also.
You can distribute the wheel, or you can distribute the distribute the zip after the "pip install ... --target" command.
If the installation machine can get dependencies, then simply distribute the wheel file and run pip install. You can optionally deploy to a virtual environment.
If the installation needs all dependencies pre-packaged, then distribute the zip, and unzip to a target directory. Then,
export PYTHONPATH=<install_dir>:$PYTHONPATH
export PATH=<install_dir>/bin:$PATH
python3 -m <your package / module name>