diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-03-27 18:47:16 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-03-27 18:47:16 +0100 |
commit | aa6229dd85dfe0684dbfbbcde7e3148af8f2f7d8 (patch) | |
tree | 59425d0dd7ef20b56fc9ac8eeb017f4ec5b43dac | |
parent | 688a79977b797b137694c3887bca2672502ab482 (diff) | |
download | donations-aa6229dd85dfe0684dbfbbcde7e3148af8f2f7d8.tar.gz donations-aa6229dd85dfe0684dbfbbcde7e3148af8f2f7d8.tar.bz2 donations-aa6229dd85dfe0684dbfbbcde7e3148af8f2f7d8.zip |
fix pip3
-rw-r--r-- | Makefile.in | 4 | ||||
-rw-r--r-- | configure.ac | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index c7b8750..5cb170b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -40,9 +40,9 @@ devinstall: $(templates) install-data # install into prefix .PHONY: install install: $(templates) install-data - @pip3 install . --install-option="--prefix=@prefix@" + @pip3 install . @DEBIAN_PIP3_SYSTEM@ --install-option="--prefix=@prefix@" @# force update when sources changed - @pip3 install . --install-option="--prefix=@prefix@" --upgrade --no-deps + @pip3 install . @DEBIAN_PIP3_SYSTEM@ --install-option="--prefix=@prefix@" --upgrade --no-deps cd talerdonations/donations/static/web-common && make install && cd - # run testcases diff --git a/configure.ac b/configure.ac index 8852d84..c7440be 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,16 @@ AC_MSG_RESULT([$VERSION]) AX_COMPARE_VERSION([$VERSION],[lt],[6.0], [AC_MSG_ERROR([Please install pip3>=6.0])]) +# On Debian systems, we may need to pass "--system" to pip3 to get +# to the desired installation target directory +pip3 install --help | grep '\-\-system' >> /dev/null +if test $? -ne 0; +then + DEBIAN_PIP3_SYSTEM="" +else + DEBIAN_PIP3_SYSTEM="--system" +fi +AC_SUBST(DEBIAN_PIP3_SYSTEM) # # Check for tsc |