[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] branch master updated: fix install-dev for lat
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] branch master updated: fix install-dev for latest pip version |
Date: |
Mon, 15 May 2017 15:00:12 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 863de3a fix install-dev for latest pip version
863de3a is described below
commit 863de3a77f22f32bf07035e65b511dd6abaf1880
Author: Florian Dold <address@hidden>
AuthorDate: Mon May 15 14:59:39 2017 +0200
fix install-dev for latest pip version
---
.gitignore | 1 +
Makefile.am | 3 ++-
configure.ac | 1 +
install-dev.py.in | 27 +++++++++++++++++++++++++++
4 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 4c14e6b..e217b27 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@ compile
missing
install-sh
Makefile.in
+install-dev.py
*.pyc
*.pyo
*.swp
diff --git a/Makefile.am b/Makefile.am
index b1b0d7e..084a6a9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,8 +17,9 @@ pkgdata_DATA = \
bank.wsgi
# link package under prefix to source tree
+.PHONY: install-dev
install-dev:
- @pip3 install -e . --install-option="address@hidden@"
+ @$(PYTHON) ./install-dev.py
check:
@export DJANGO_SETTINGS_MODULE="talerbank.settings"
TALER_PREFIX="@prefix@" && python3 -m django test talerbank.app.tests
diff --git a/configure.ac b/configure.ac
index 3082b5c..72c8047 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,6 +75,7 @@ fi
#
AC_CONFIG_FILES([Makefile
+ install-dev.py
bank.wsgi
taler-bank-manage
talerbank/Makefile
diff --git a/install-dev.py.in b/install-dev.py.in
new file mode 100644
index 0000000..450435e
--- /dev/null
+++ b/install-dev.py.in
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+"""
+This file is in the public domain.
+
+Execute pip3 in the right environment and the right parameters to install this
+package in the correct path.
+
+This is not a common use-case for pip, and thus it needs some hand-holding.
+"""
+
+import sys
+import os
+
+prefix_path = "%s/lib/python%d.%d/site-packages" % (
+ "@prefix@",
+ sys.version_info.major,
+ sys.version_info.minor)
+
+current_paths = os.environ.get("PYTHONPATH", "").split(":")
+current_paths.append(prefix_path)
+current_paths.remove("")
+os.environ["PYTHONPATH"] = ":".join(current_paths)
+
+os.execlp("pip3", "pip3", "install", '--install-option=--prefix=%s' %
"@prefix@", "-e", ".")
+
+
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-bank] branch master updated: fix install-dev for latest pip version,
gnunet <=