Only fix OS X platform name on 2.5, the only version on which it's broken

This commit is contained in:
Nate Coraor
2009-11-18 16:18:09 -05:00
parent 9efa130e6f
commit 6cf823e1ef
+3 -2
View File
@@ -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()