From d999a8b170ed6c26ffc3786ea7286fdf5591ae5b Mon Sep 17 00:00:00 2001 From: "R. Andrew Ohana" Date: Wed, 11 Dec 2013 01:13:06 -0800 Subject: [PATCH] setup.py: only use real paths --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ac7910a9a..814f85375 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,10 @@ _LIB_IMAGING = ( def _add_directory(path, dir, where=None): - if dir and os.path.isdir(dir) and dir not in path: + if dir is None: + return + dir = os.path.realpath(dir) + if os.path.isdir(dir) and dir not in path: if where is None: path.append(dir) else: