Installing modules via setuptools in a script
Thorsten Kampe
thorsten at thorstenkampe.de
Sat Nov 24 08:38:17 EST 2007
Date: Fri, 23 Nov 2007 19:35:21 -0000
Message-ID: <MPG.21b13bd5fda74bd3989729 at news.individual.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
Hi,
can anyone give me a short code snippet how to install a missing
module via setuptools (assuming setuptools is already installed)?!
Something like this:
try:
import missing_module
except import_error
import setuptools
setuptools.whatever.install(missing_module)
Thorsten
More information about the Python-list
mailing list