Skip to content Skip to sidebar Skip to footer

Is It Possible To Create A Fully Self-contained Python Package?

The question Ansible is a python moduel, installable via pip. It relies on several dependencies, also pip modules. Is it possible to 'roll up' all of those dependencies and Ansible

Solution 1:

Use pip on an internet-connected machine to download all the deps to a local dir with --download and -r requirements.txt, then drop that dir on the disconnected machine with pip installed, and install using --no-index and --find-links=(archive dir).

See https://pip.pypa.io/en/latest/user_guide/#fast-local-installs

Post a Comment for "Is It Possible To Create A Fully Self-contained Python Package?"