|
|
34d58a7 |
diff --git a/virtualenv.py b/virtualenv.py
|
|
|
34d58a7 |
index 2ad2695..a0ddfaf 100755
|
|
|
34d58a7 |
--- a/virtualenv.py
|
|
|
34d58a7 |
+++ b/virtualenv.py
|
|
|
34d58a7 |
@@ -400,6 +400,9 @@ def _find_file(filename, dirs):
|
|
|
34d58a7 |
def file_search_dirs():
|
|
|
34d58a7 |
here = os.path.dirname(os.path.abspath(__file__))
|
|
|
34d58a7 |
dirs = [here, join(here, 'virtualenv_support')]
|
|
|
34d58a7 |
+ if sys.version_info >= (2, 7):
|
|
|
34d58a7 |
+ # we don't insert on 2.6 because the wheels there are not compatible
|
|
|
34d58a7 |
+ dirs.insert(1, '/usr/share/python-wheels')
|
|
|
34d58a7 |
if os.path.splitext(os.path.dirname(__file__))[0] != 'virtualenv':
|
|
|
34d58a7 |
# Probably some boot script; just in case virtualenv is installed...
|
|
|
34d58a7 |
try:
|