From 0f886fd03ab2c9e300b76aebe5d474ef2f63fce1 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 2 Jan 2015 15:04:45 -0500 Subject: Use same egg-cache-dir as used by setuptools 7.0 and later. Fixes #3. --- ptr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ptr.py b/ptr.py index 8d37f0b..c98981b 100644 --- a/ptr.py +++ b/ptr.py @@ -74,8 +74,10 @@ class PyTest(orig.test): opts['allow_hosts'] = ('test', self.allow_hosts) if self.index_url: opts['index_url'] = ('test', self.index_url) + install_dir_func = getattr(dist, 'get_egg_cache_dir', _os.curdir) + install_dir = install_dir_func() cmd = easy_install( - dist, args=["x"], install_dir=_os.curdir, exclude_scripts=True, + dist, args=["x"], install_dir=install_dir, exclude_scripts=True, always_copy=False, build_directory=None, editable=False, upgrade=False, multi_version=True, no_report = True ) -- cgit v1.2.1