[Python-checkins] r80356 - python/branches/py3k-cdecimal/setup.py
stefan.krah
python-checkins at python.org
Thu Apr 22 13:43:58 CEST 2010
Author: stefan.krah
Date: Thu Apr 22 13:43:57 2010
New Revision: 80356
Log:
Switch to self.get_platform().
Modified:
python/branches/py3k-cdecimal/setup.py
Modified: python/branches/py3k-cdecimal/setup.py
==============================================================================
--- python/branches/py3k-cdecimal/setup.py (original)
+++ python/branches/py3k-cdecimal/setup.py Thu Apr 22 13:43:57 2010
@@ -8,7 +8,6 @@
import sysconfig
from distutils import log
-from distutils import util
from distutils import text_file
from distutils.errors import *
from distutils.core import Extension, setup
@@ -1676,7 +1675,7 @@
'cdecimal/umodarith.h',
]
extra_objects = []
- platform = util.get_platform()
+ platform = self.get_platform()
cc = sysconfig.get_config_var('CC')
SIZEOF_SIZE_T = sysconfig.get_config_var('SIZEOF_SIZE_T')
HAVE_GCC_ASM_FOR_X87 = sysconfig.get_config_var('HAVE_GCC_ASM_FOR_X87')
@@ -1697,7 +1696,7 @@
raise DistutilsError("cdecimal: unsupported architecture")
# Not recommended: TLS is very slow!
# define_macros.append(('USE_THREAD_LOCAL_STORAGE', 1))
- if 'solaris' in platform and cc == 'cc': # suncc
+ if 'sunos' in platform and cc == 'cc': # suncc
extra_compile_args.extend(['-erroff=E_ARGUEMENT_MISMATCH'])
if platform == 'darwin':
extra_link_args.extend(['-lcc_dynamic'])
More information about the Python-checkins
mailing list