changeset 2307:773f0e488722

dirty hack to support pip 1.5 incompatibilities, set PIP15=True in quickinstall.py if you need it
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 19 Jan 2014 17:57:47 +0100
parents 90a17c8544ad
children d5fa8dae5055
files quickinstall.py
diffstat 1 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/quickinstall.py	Sun Nov 17 14:01:14 2013 -0700
+++ b/quickinstall.py	Sun Jan 19 17:57:47 2014 +0100
@@ -8,6 +8,8 @@
 needs: virtualenv, pip
 """
 
+PIP15 = False  # dirty hack to support pip >= 1.5 incompatibilities
+
 import MoinMoin  # validate python version
 import argparse
 import logging
@@ -52,15 +54,22 @@
         virtualenv.create_environment(self.dir_venv)
 
     def do_install(self):
-        subprocess.check_call((
+        args = [
             os.path.join(self.dir_venv_bin, 'pip'),
             'install',
             # XXX: move cache to XDG cache dir
             '--download-cache',
             os.path.join(os.path.dirname(self.dir_venv), '.pip-download-cache'),
             '--editable',
-            self.dir_source
-        ))
+            self.dir_source,
+        ]
+        if PIP15:
+            args += [
+            '--process-dependency-links',
+            '--allow-external', 'flatland',
+            '--allow-unverified', 'flatland',
+        ]
+        subprocess.check_call(args)
 
     def do_catalog(self):
         subprocess.check_call((