summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe <glen@pld-linux.org>2017-07-10 12:09:53 +0300
committerTomáš Mráz <t8m@users.noreply.github.com>2017-07-10 11:09:53 +0200
commited548e422bd8341e52443dc60fceca9126cd1462 (patch)
treeeec9070ac8238dacb7c6cfce0443ee721b19c64e
parent1dd3c0d423d52f6748b048c5da8e0c3e3c1080be (diff)
downloadlibpwquality-git-ed548e422bd8341e52443dc60fceca9126cd1462.tar.gz
use separate build tree for python versions (#2)
added python patch to allow multiple python versions build without duplicating source tree
-rw-r--r--python/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index abc5cd3..fd3a5ea 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -11,7 +11,7 @@ CLEANFILES = *~ constants.c *.so
EXTRA_DIST = pwquality.c setup.py
all-local:
- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-lib=.
+ CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV)
install-exec-local:
- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py install --prefix=${DESTDIR}${prefix}
+ CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix}