mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
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).
This commit is contained in:
parent
00ace20d9b
commit
82acf3a0f8
4
setup.py
4
setup.py
@ -3,9 +3,9 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
import sys
|
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'):
|
if sys.platform == 'darwin' and sys.prefix.startswith('/System'):
|
||||||
data_prefix = '/Library/Python/2.7/site-packages'
|
data_prefix = '.'
|
||||||
else:
|
else:
|
||||||
data_prefix = sys.prefix
|
data_prefix = sys.prefix
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user