summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo de Barros Lima <eblima@gmail.com>2011-11-30 17:36:33 +0000
committerEduardo de Barros Lima <eblima@gmail.com>2011-11-30 17:36:33 +0000
commitc18fb7edcdfae9e4c61c857a16bf0010b3bf65d6 (patch)
tree787f9d3d5c5a055414e8abeaafb6ec3e84b8df55
parenta873143ede1cdd80090811e7e57fc75643501736 (diff)
Python: Force installing everything under $pyexecdir
On x86_64 systems, aclocal will report different directories for pythondir and pyexecdir. The former is used for architecture independent files (such as python scripts) while the latter for architecture dependent, such python extension modules, as our very own bindings. The problem is that we actually have a mix of both independent and dependent files. For instance, evas binding will install evas/__init__.py and evas/c_evas.so files in separate directories. When someone tries to run a simple 'import evas' in python, he will get an ImportError, saying it could not find the module c_evas. This patch fixes the problem by forcing the $pythondir to $pyexecdir, assuming our binding are architecture dependent. SVN revision: 65723
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a92a5ca..89ab386 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,6 +122,11 @@ AM_CONDITIONAL(HAVE_CYTHON, [test "x$CYTHON_FOUND" = "xyes"])
122FILTER_VAR_REGEXP([CFLAGS], [-fvisibility=hidden]) 122FILTER_VAR_REGEXP([CFLAGS], [-fvisibility=hidden])
123FILTER_VAR_REGEXP([LDFLAGS], [-fvisibility=hidden]) 123FILTER_VAR_REGEXP([LDFLAGS], [-fvisibility=hidden])
124 124
125# Install everything into $pyexecdir
126if test "x$pythondir" != "x$pyexecdir"; then
127 AC_SUBST([pythondir], [$pyexecdir])
128fi
129
125AM_CHECK_PYTHONPATH 130AM_CHECK_PYTHONPATH
126 131
127AC_PATH_PROG([EPYDOC], [epydoc], [no]) 132AC_PATH_PROG([EPYDOC], [epydoc], [no])
@@ -174,6 +179,8 @@ echo " Client...............: ${want_ethumb_client} (found: ${have_ethumb_clien
174echo 179echo
175echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')" 180echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
176echo " prefix...............: $prefix" 181echo " prefix...............: $prefix"
182echo " pythondir............: $pythondir"
183echo " pyexecdir............: $pyexecdir"
177echo 184echo
178echo 185echo
179 186