Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c87c1a

Browse files
committed
Fix Issue9545 - Adding _collections to static build.
1 parent 3102230 commit 5c87c1a

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

Modules/Setup.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ _sre _sre.c # Fredrik Lundh's new regular expressions
113113
_codecs _codecsmodule.c # access to the builtin codecs and codec registry
114114
_weakref _weakref.c # weak references
115115
_functools _functoolsmodule.c # Tools for working with functions and callable objects
116+
operator operator.c # operator.add() and similar goodies
117+
_collections _collectionsmodule.c # Container types
118+
itertools itertoolsmodule.c # Functions creating iterators for efficient looping
116119

117120
# access to ISO C locale support
118121
_locale _localemodule.c # -lintl

setup.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,18 +454,12 @@ def detect_modules(self):
454454
libraries=math_libs) )
455455
exts.append( Extension('_datetime', ['_datetimemodule.c', '_time.c'],
456456
libraries=math_libs) )
457-
# fast iterator tools implemented in C
458-
exts.append( Extension("itertools", ["itertoolsmodule.c"]) )
459457
# random number generator implemented in C
460458
exts.append( Extension("_random", ["_randommodule.c"]) )
461-
# high-performance collections
462-
exts.append( Extension("_collections", ["_collectionsmodule.c"]) )
463459
# bisect
464460
exts.append( Extension("_bisect", ["_bisectmodule.c"]) )
465461
# heapq
466462
exts.append( Extension("_heapq", ["_heapqmodule.c"]) )
467-
# operator.add() and similar goodies
468-
exts.append( Extension('operator', ['operator.c']) )
469463
# C-optimized pickle replacement
470464
exts.append( Extension("_pickle", ["_pickle.c"]) )
471465
# atexit

0 commit comments

Comments
 (0)