summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Iversen <teh.ivo@gmail.com>2015-09-21 16:23:58 +1000
committerMatt Iversen <teh.ivo@gmail.com>2015-09-21 16:23:58 +1000
commit47cda29fd838707a1fbfce99375cb7a87e47a4e3 (patch)
treec31a841645714e23e895c783d1b0711f15b0e9ff
parentdc11925cfc7c11c9a86942febd21d83feacb0376 (diff)
parentbca258998010ecdbf724a610d0ed00d34554ff6a (diff)
downloadvirtualenv-47cda29fd838707a1fbfce99375cb7a87e47a4e3.tar.gz
Merge pull request #472 from pmakowski/patch-1
Remove mandriva/mageia multiarch workaround, no longer needed
-rwxr-xr-xvirtualenv.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/virtualenv.py b/virtualenv.py
index c877983..5feb6f2 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -1053,17 +1053,7 @@ def path_locations(home_dir):
bin_dir = join(home_dir, 'bin')
elif not is_win:
lib_dir = join(home_dir, 'lib', py_version)
- multiarch_exec = '/usr/bin/multiarch-platform'
- if is_executable_file(multiarch_exec):
- # In Mageia (2) and Mandriva distros the include dir must be like:
- # virtualenv/include/multiarch-x86_64-linux/python2.7
- # instead of being virtualenv/include/python2.7
- p = subprocess.Popen(multiarch_exec, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- stdout, stderr = p.communicate()
- # stdout.strip is needed to remove newline character
- inc_dir = join(home_dir, 'include', stdout.strip(), py_version + abiflags)
- else:
- inc_dir = join(home_dir, 'include', py_version + abiflags)
+ inc_dir = join(home_dir, 'include', py_version + abiflags)
bin_dir = join(home_dir, 'bin')
return home_dir, lib_dir, inc_dir, bin_dir