mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Only fix OS X platform name on 2.5, the only version on which it's broken
This commit is contained in:
@@ -12,8 +12,9 @@ Galaxy root package -- this is a namespace package.
|
||||
import os, sys
|
||||
from distutils.sysconfig import get_config_vars
|
||||
|
||||
if ( os.uname()[-1] in ( 'i386', 'ppc' ) and sys.platform == 'darwin' and os.path.abspath( sys.prefix ).startswith( '/System' ) ) or \
|
||||
( sys.platform == 'darwin' and get_config_vars().get('UNIVERSALSDK', '').strip() ):
|
||||
if sys.version_info[:2] == ( 2, 5 ) and \
|
||||
( ( os.uname()[-1] in ( 'i386', 'ppc' ) and sys.platform == 'darwin' and os.path.abspath( sys.prefix ).startswith( '/System' ) ) or \
|
||||
( sys.platform == 'darwin' and get_config_vars().get('UNIVERSALSDK', '').strip() ) ):
|
||||
# Has to be before anything imports pkg_resources
|
||||
def _get_platform_monkeypatch():
|
||||
plat = distutils.util._get_platform()
|
||||
|
||||
Reference in New Issue
Block a user