From e76ae0821c939cf8eab1c266b3ca0379f563e0fa Mon Sep 17 00:00:00 2001 From: Marcus Smith Date: Tue, 15 Jan 2013 23:18:23 -0800 Subject: [PATCH] using realpath since tmp dirs on OSX can be symlinks --- pip/locations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pip/locations.py b/pip/locations.py index be385ad20..d378dd739 100644 --- a/pip/locations.py +++ b/pip/locations.py @@ -32,7 +32,8 @@ if running_under_virtualenv(): else: # Use tempfile to create a temporary folder for build # Note: we are NOT using mkdtemp so we can have a consistent build dir - build_prefix = os.path.join(tempfile.gettempdir(), 'pip-build') + # Note: using realpath due to tmp dirs on OSX being symlinks + build_prefix = os.path.realpath(os.path.join(tempfile.gettempdir(), 'pip-build')) ## FIXME: keep src in cwd for now (it is not a temporary folder) try: