incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1300071 - /incubator/bloodhound/trunk/installer/installer.py
Date Tue, 13 Mar 2012 10:55:15 GMT
Author: gjm
Date: Tue Mar 13 10:55:14 2012
New Revision: 1300071

URL: http://svn.apache.org/viewvc?rev=1300071&view=rev
Log:
maintain compatibility with older versions of virtualenv, fixing #4

Modified:
    incubator/bloodhound/trunk/installer/installer.py

Modified: incubator/bloodhound/trunk/installer/installer.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/installer/installer.py?rev=1300071&r1=1300070&r2=1300071&view=diff
==============================================================================
--- incubator/bloodhound/trunk/installer/installer.py (original)
+++ incubator/bloodhound/trunk/installer/installer.py Tue Mar 13 10:55:14 2012
@@ -27,9 +27,13 @@ import platform
 import sys
 from getpass import getpass
 
-from virtualenv import create_environment
+import virtualenv
 from createdigest import htdigest_create
 
+if not hasattr(virtualenv, 'logger'):
+    virtualenv.logger = virtualenv.Logger([(virtualenv.Logger.LEVELS[-1], 
+                                          sys.stdout)])
+
 DEFAULT_DB_USER = 'bloodhound'
 DEFAULT_DB_NAME = 'bloodhound'
 DEFAULT_ADMIN_USER = 'admin'
@@ -119,7 +123,8 @@ def do_install(options):
     bindir = os.path.join(options.venvpath,'bin')
     admin = os.path.join(bindir, 'trac-admin')
     
-    create_environment(options.venvpath, site_packages=options.syspackages)
+    virtualenv.create_environment(options.venvpath, 
+                                  site_packages=options.syspackages)
     
     def run_pip(venvpath, requirements):
         """Run pip install"""



Mime
View raw message