aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Regebro <regebro@gmail.com>2012-08-22 10:45:10 +0200
committerLennart Regebro <regebro@gmail.com>2012-08-22 10:45:10 +0200
commit09e17ec652658269939b018ed50bdec2cc2c5bc1 (patch)
tree22f0ed9110525ee457f903613d3482e7b16ad38e
parent49b3d3139224fd5a6b89815af233b77244dc5bc8 (diff)
downloadexternal_python_setuptools-09e17ec652658269939b018ed50bdec2cc2c5bc1.tar.gz
external_python_setuptools-09e17ec652658269939b018ed50bdec2cc2c5bc1.tar.bz2
external_python_setuptools-09e17ec652658269939b018ed50bdec2cc2c5bc1.zip
Python 3.3b2's importlib doesn't like sys.paths that dissappear. By having a relative path in sys.path and then doinga chdir() that's exactly what happens. This bug will be fixed in the next 3.3 release, but there is no drawback to adding the path as an absolute path, so we do that to make the tests run under 3.3b2.
--HG-- branch : distribute extra : rebase_source : 51c5ac7f8916ca85fb2633b8cdbd7aa2e759e67e
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 9df6bb49..9a0fffb4 100755
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ if sys.version_info >= (3,):
util.run_2to3(outfiles_2to3)
# arrange setup to use the copy
- sys.path.insert(0, tmp_src)
+ sys.path.insert(0, os.path.abspath(tmp_src))
src_root = tmp_src
from distutils.util import convert_path