Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > 9633febf13ff63051dbd225c0a1cec49 > files > 3

python-exiv2-0.1.3-6mdv2010.1.src.rpm

Index: src/SConscript
===================================================================
--- src/SConscript
+++ src/SConscript	2009-08-10 19:39:25.000000000 -0300
@@ -3,6 +3,7 @@
 
 import sys
 import os.path
+import distutils.sysconfig
 
 env = Environment()
 
@@ -22,7 +23,7 @@
 # 'scons install'. If DESTDIR is specified on the command line when invoking
 # scons, it will be prepended to each installed target file. See
 # http://www.gnu.org/prep/standards/html_node/DESTDIR.html for reference.
-python_lib_path = os.path.join(sys.prefix, 'lib', 'python' + sys.version[:3], 'site-packages')
+python_lib_path = distutils.sysconfig.get_python_lib(plat_specific=1)
 dest_dir = ARGUMENTS.get('DESTDIR')
 if (dest_dir is None) or (not os.path.isabs(dest_dir)):
     install_dir = python_lib_path