r23465 - gnucash/trunk/src/bin - Bug 710871 - Python site-packages not found when not installed to default location using --prefix

Mike Evans mikee at code.gnucash.org
Sat Nov 30 11:03:44 EST 2013


Author: mikee
Date: 2013-11-30 11:03:44 -0500 (Sat, 30 Nov 2013)
New Revision: 23465
Trac: http://svn.gnucash.org/trac/changeset/23465

Modified:
   gnucash/trunk/src/bin/Makefile.am
Log:
Bug 710871 - Python site-packages not found when not installed to default location using --prefix

modified:   ../src/bin/Makefile.am

Modified: gnucash/trunk/src/bin/Makefile.am
===================================================================
--- gnucash/trunk/src/bin/Makefile.am	2013-11-30 14:39:17 UTC (rev 23464)
+++ gnucash/trunk/src/bin/Makefile.am	2013-11-30 16:03:44 UTC (rev 23465)
@@ -86,6 +86,14 @@
 		echo "# and gsettings schemas are found." >> $@.tmp; \
 		echo "XDG_DATA_DIRS=$(datadir);{XDG_DATA_DIRS};${GNC_SYSTEM_XDG_DATA_DIRS}" >> $@.tmp; \
 	fi
+if WITH_PYTHON
+	if [ "${PYTHON_SITE_PKG}" != "${pyexecdir}" ]; \
+	then \
+		echo  >> $@.tmp; \
+		echo "# Define PYTHONPATH for non default installation path." >> $@.tmp; \
+		echo "PYTHONPATH=${pyexecdir};{PYTHONPATH}" >> $@.tmp; \
+	fi
+endif
 	mv $@.tmp $@
 
 CLEANFILES = $(BUILT_SOURCES) ${config_DATA} ${PLATFORM_FILES}



More information about the gnucash-changes mailing list