I\'m trying to create a generic python script for starting up a python app and I would like to install any dependent python modules if they are missing from the target system.
For those, who use setuptools you can use setuptools.sandbox :
from setuptools import sandbox sandbox.run_setup('setup.py', ['clean', 'bdist_wheel'])