From 09e17ec652658269939b018ed50bdec2cc2c5bc1 Mon Sep 17 00:00:00 2001 From: Lennart Regebro Date: Wed, 22 Aug 2012 10:45:10 +0200 Subject: 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 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') 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 -- cgit v1.2.3