Linux/Win32 func. to get Python instdir (not exedir) + site-packages => extensions mgmt
Diez B. Roggisch
deets at nospam.web.de
Mon Jan 21 04:34:37 EST 2008
pythonewbie
>
> Because the solution using distutils.sysconfig.get_python_lib() is
> very smart !
Depending on your goal. You said
"""
My goal is to verify if an/several extension(s) are installed and to
automatically install the missing ones on Linux or Win32.
"""
This goal can't be reached with only the site-packages - because I can
install packages somewhere else (matter of factly, this happens on debian
for example, they've split the install-dirs and created a bunch of dirs
under /usr/share)
So having a method that gives you the installation root doesn't help much
here.
Diez
More information about the Python-list
mailing list