chiark / gitweb /
let setuptools determine the base install path on OSX
authorHans-Christoph Steiner <hans@eds.org>
Mon, 3 Aug 2015 20:03:25 +0000 (22:03 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 3 Aug 2015 20:17:20 +0000 (22:17 +0200)
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).

setup.py

index 12cf73d3be41c228cfc7d871df5ae59756a7b40b..043d899eed1bfcd001d016e6d3a6b2753f128a34 100644 (file)
--- 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