Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > a9d00576049d4df064cc6307afbd1210 > files > 1

awn-extras-applets-0.2.6-4mdv2008.0.src.rpm

--- awn-extras-applets-0.2.6/m4/python.m4	2008-02-14 08:49:53.000000000 -0800
+++ awn-extras-applets-0.2.6/m4/python.m4.new	2008-02-24 01:21:07.000000000 -0800
@@ -168,6 +168,17 @@
         AC_SUBST([PYTHON_SITE_PKG])
 
         #
+        # Check for the platform-specific site packages directory
+        #
+        AC_MSG_CHECKING([for Python platform-specific site-packages path])
+        if test -z "$PYTHON_PLATFORM_PKG"; then
+                PYTHON_PLATFORM_PKG=`$PYTHON -c "import distutils.sysconfig; \
+                        print distutils.sysconfig.get_python_lib(1,0,prefix='${PYTHON_EXEC_PREFIX}');"`
+        fi
+        AC_MSG_RESULT([$PYTHON_PLATFORM_PKG])
+        AC_SUBST([PYTHON_PLATFORM_PKG])
+
+        #
         # libraries which must be linked in when embedding
         #
         AC_MSG_CHECKING(python extra libraries)

--- awn-extras-applets-0.2.6/src/libawn-extras/bindings/python/Makefile.am	2008-02-22 07:30:34.000000000 -0800
+++ awn-extras-applets-0.2.6/src/libawn-extras/bindings/python/Makefile.am.new	2008-02-25 12:25:24.000000000 -0800
@@ -1,7 +1,7 @@
 NULL = 
 
 # awn python scripts
-pyawn_extrasdir = $(PYTHON_SITE_PKG)/awn/extras
+pyawn_extrasdir = $(PYTHON_PLATFORM_PKG)/awn/extras
 pyawn_extras_PYTHON =	\
 	__init__.py	\
 	AWNLib.py
@@ -16,7 +16,7 @@
 	$(NULL)
 
 # libawn-extras python extensions
-pyawn_extrasexecdir = $(PYTHON_SITE_PKG)/awn/extras
+pyawn_extrasexecdir = $(PYTHON_PLATFORM_PKG)/awn/extras
 pyawn_extrasexec_LTLIBRARIES = _extras.la
 
 common_ldflags = -module -avoid-version