Package: python-virtualenv / 1.4.9-3squeeze1

look_for_external_files.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Description: store files in /usr/share/python-virtualenv/
# Author: Carl Chenet <chaica@ohmytux.com>

Index: python-virtualenv-1.4.9/setup.py
===================================================================
--- python-virtualenv-1.4.9.orig/setup.py
+++ python-virtualenv-1.4.9/setup.py
@@ -63,6 +63,6 @@ setup(name='virtualenv',
       license='MIT',
       py_modules=['virtualenv'],
       packages=['virtualenv_support'],
-      package_data={'virtualenv_support': ['*-py%s.egg' % sys.version[:3], '*.tar.gz']},
+      #package_data={'virtualenv_support': ['*-py%s.egg' % sys.version[:3], '*.tar.gz']},
       **kw
       )
Index: virtualenv-1.4.9/virtualenv.py
===================================================================
--- virtualenv-1.4.9.orig/virtualenv.py	2010-07-06 01:09:36.000000000 +0200
+++ virtualenv-1.4.9/virtualenv.py	2010-07-06 02:20:52.000000000 +0200
@@ -346,7 +346,8 @@
 def file_search_dirs():
     here = os.path.dirname(os.path.abspath(__file__))
     dirs = ['.', here,
-            join(here, 'virtualenv_support')]
+            #join(here, 'virtualenv_support')]
+            '/usr/share/python-virtualenv/']
     if os.path.splitext(os.path.dirname(__file__))[0] != 'virtualenv':
         # Probably some boot script; just in case virtualenv is installed...
         try: