aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configure.ac1
-rw-r--r--src/vpp-api/python/Makefile.am3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/configure.ac b/src/configure.ac
index b2234448..fbedabf0 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -10,6 +10,7 @@ AC_PROG_CC
AM_PROG_AS
AM_PROG_LIBTOOL
AC_PROG_YACC
+AM_PATH_PYTHON
AM_CONDITIONAL([CROSSCOMPILE], [test "$cross_compiling" == "yes"])
diff --git a/src/vpp-api/python/Makefile.am b/src/vpp-api/python/Makefile.am
index 16c47627..cd8db4f6 100644
--- a/src/vpp-api/python/Makefile.am
+++ b/src/vpp-api/python/Makefile.am
@@ -41,7 +41,8 @@ libpneum_la_CPPFLAGS =
# TODO: Support both Python 2 and 3.
install-exec-local:
cd $(srcdir); \
- mkdir -p $(prefix)/lib/python2.7/site-packages; \
+ mkdir -p $(pythondir); \
+ mkdir -p $(pyexecdir); \
PYTHONUSERBASE=$(prefix) \
python setup.py build_ext -L $(libdir) \
-I $(prefix)/include/ install --user