Blame SOURCES/rpm-wheels.patch
|
|
f5381e |
diff --git a/virtualenv.py b/virtualenv.py
|
|
|
f5381e |
index 5699998..55c7321 100755
|
|
|
f5381e |
--- a/virtualenv.py
|
|
|
f5381e |
+++ b/virtualenv.py
|
|
|
f5381e |
@@ -39,9 +39,9 @@ except ImportError:
|
|
|
f5381e |
__version__ = "15.1.0"
|
|
|
f5381e |
virtualenv_version = __version__ # legacy
|
|
|
f5381e |
|
|
|
f5381e |
-if sys.version_info < (2, 6):
|
|
|
f5381e |
+if sys.version_info < (2, 7):
|
|
|
f5381e |
print('ERROR: %s' % sys.exc_info()[1])
|
|
|
f5381e |
- print('ERROR: this script requires Python 2.6 or greater.')
|
|
|
f5381e |
+ print('ERROR: this script requires Python 2.7 or greater.')
|
|
|
f5381e |
sys.exit(101)
|
|
|
f5381e |
|
|
|
f5381e |
try:
|
|
|
f5381e |
@@ -399,6 +399,7 @@ def _find_file(filename, dirs):
|
|
|
f5381e |
def file_search_dirs():
|
|
|
f5381e |
here = os.path.dirname(os.path.abspath(__file__))
|
|
|
f5381e |
dirs = [here, join(here, 'virtualenv_support')]
|
|
|
f5381e |
+ dirs.insert(1, '/usr/share/python{}-wheels'.format(sys.version_info[0]))
|
|
|
f5381e |
if os.path.splitext(os.path.dirname(__file__))[0] != 'virtualenv':
|
|
|
f5381e |
# Probably some boot script; just in case virtualenv is installed...
|
|
|
f5381e |
try:
|