From 32a47417750420524e1270cc5e3fc749eb9e5a89 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 6 Sep 2015 22:58:47 -0400 Subject: Restore old behavior for calculating the base. Fixes failing test and fixes #425. --- setuptools/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'setuptools/__init__.py') diff --git a/setuptools/__init__.py b/setuptools/__init__.py index e9390336..49002619 100644 --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -145,7 +145,9 @@ def findall(dir=os.curdir): Unless dir is '.', return full filenames with dir prepended. """ def _prepend(base): - return functools.partial(os.path.join, os.path.relpath(base, dir)) + if base == os.curdir or base.startswith(os.curdir + os.sep): + base = base[2:] + return functools.partial(os.path.join, base) return [ file -- cgit v1.2.1