From: Hans-Christoph Steiner Date: Mon, 3 Aug 2015 20:03:25 +0000 (+0200) Subject: let setuptools determine the base install path on OSX X-Git-Tag: 0.4.0~5^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=fdroidserver.git;a=commitdiff_plain;h=82acf3a0f826c7fe500e8a2ff1f235be6c17c6f7 let setuptools determine the base install path on OSX Instead of trying to guess which absolute path and .egg name everything will be installed into, just use a relative path and the setup process will do the right thing (so far, at least). --- diff --git a/setup.py b/setup.py index 12cf73d3..043d899e 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,9 @@ from setuptools import setup import sys -# workaround issue with easy_install on OSX, where sys.prefix is not an installable location +# workaround issue on OSX, where sys.prefix is not an installable location if sys.platform == 'darwin' and sys.prefix.startswith('/System'): - data_prefix = '/Library/Python/2.7/site-packages' + data_prefix = '.' else: data_prefix = sys.prefix