mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
build _functools and _locale into the core library
This commit is contained in:
parent
932073a169
commit
9c80cacb8c
3 changed files with 3 additions and 21 deletions
18
setup.py
18
setup.py
|
@ -424,8 +424,6 @@ class PyBuildExt(build_ext):
|
|||
exts.append( Extension("_heapq", ["_heapqmodule.c"]) )
|
||||
# operator.add() and similar goodies
|
||||
exts.append( Extension('operator', ['operator.c']) )
|
||||
# _functools
|
||||
exts.append( Extension("_functools", ["_functoolsmodule.c"]) )
|
||||
# C-optimized pickle replacement
|
||||
exts.append( Extension("_pickle", ["_pickle.c"]) )
|
||||
# atexit
|
||||
|
@ -439,22 +437,6 @@ class PyBuildExt(build_ext):
|
|||
exts.append( Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']) )
|
||||
# static Unicode character database
|
||||
exts.append( Extension('unicodedata', ['unicodedata.c']) )
|
||||
# access to ISO C locale support
|
||||
data = open('pyconfig.h').read()
|
||||
m = re.search(r"#s*define\s+WITH_LIBINTL\s+1\s*", data)
|
||||
if m is not None:
|
||||
locale_libs = ['intl']
|
||||
else:
|
||||
locale_libs = []
|
||||
if platform == 'darwin':
|
||||
locale_extra_link_args = ['-framework', 'CoreFoundation']
|
||||
else:
|
||||
locale_extra_link_args = []
|
||||
|
||||
|
||||
exts.append( Extension('_locale', ['_localemodule.c'],
|
||||
libraries=locale_libs,
|
||||
extra_link_args=locale_extra_link_args) )
|
||||
|
||||
# Modules with some UNIX dependencies -- on by default:
|
||||
# (If you have a really backward UNIX, select and socket may not be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue