[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

detecting the right /usr/lib/python2.x in an upstream-compatible way



Hi,

Matthias Klose filed a bug and patch against pyx because it had a
hardcoded /usr/lib/python2.3. Thanks!
The bugfix is to detect the python version and then use
/usr/lib/python$(PYTHON_VERSION).
While this is obviously correct for Debian, I'm wondering whether it
would be better to use something like
  $(python -c "import os.path, site ; print os.path.dirname(site.__file__)")
in order be able to share with upstream who might want to cater for
local python installations (pyx upstream has "import site; print
site.here" in SVN but that doesn't work in python >= 2.4).

Any comments?

Kind regards

T.
-- 
Thomas Viehmann, http://thomas.viehmann.net/



Reply to: