summaryrefslogtreecommitdiff
path: root/numpy/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/setup.py')
-rw-r--r--numpy/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/setup.py b/numpy/setup.py
index ae28e0eb1..621838aba 100644
--- a/numpy/setup.py
+++ b/numpy/setup.py
@@ -19,7 +19,8 @@ if __name__ == '__main__':
# Remove current working directory from sys.path
# to avoid importing numpy.distutils as Python std. distutils:
import os, sys
- sys.path.remove(os.getcwd())
+ for cwd in ['','.',os.getcwd()]:
+ while cwd in sys.path: sys.path.remove(cwd)
from numpy.distutils.core import setup
setup(configuration=configuration)