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

Skip to content

Commit 50959b5

Browse files
authored
Merge pull request #14442 from anntzer/extmods
In the build, declare all (compulsory) extension modules together.
2 parents 373b09a + 2c2b2f4 commit 50959b5

File tree

2 files changed

+140
-202
lines changed

2 files changed

+140
-202
lines changed

setup.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,9 @@
5555
setupext.Matplotlib(),
5656
setupext.Python(),
5757
setupext.Platform(),
58-
setupext.LibAgg(),
5958
setupext.FreeType(),
60-
setupext.FT2Font(),
61-
setupext.Qhull(),
62-
setupext.Image(),
63-
setupext.TTConv(),
64-
setupext.Path(),
65-
setupext.Contour(),
66-
setupext.QhullWrap(),
67-
setupext.Tri(),
6859
setupext.SampleData(),
6960
setupext.Tests(),
70-
setupext.BackendAgg(),
71-
setupext.BackendTkAgg(),
7261
setupext.BackendMacOSX(),
7362
]
7463

@@ -81,8 +70,11 @@ def __init__(self, dist):
8170

8271
class BuildExtraLibraries(BuildExtCommand):
8372
def finalize_options(self):
84-
self.distribution.ext_modules[:] = filter(
85-
None, (package.get_extension() for package in good_packages))
73+
self.distribution.ext_modules[:] = [
74+
ext
75+
for package in good_packages
76+
for ext in package.get_extensions()
77+
]
8678
super().finalize_options()
8779

8880
def build_extensions(self):

0 commit comments

Comments
 (0)