1 --- a/src/twisted/python/_setup.py
2 +++ b/src/twisted/python/_setup.py
3 @@ -169,11 +169,6 @@ class ConditionalExtension(Extension, object):
5 # The C extensions used for Twisted.
7 - ConditionalExtension(
8 - "twisted.test.raiser",
9 - sources=["src/twisted/test/raiser.c"],
10 - condition=lambda _: _isCPython),
13 "twisted.internet.iocpreactor.iocpsupport",
15 @@ -238,12 +233,11 @@ def getSetupArgs(extensions=_EXTENSIONS):
16 "incremental >= 16.10.1",
18 "hyperlink >= 17.1.1",
19 - "PyHamcrest >= 1.9.0",
23 arguments.update(dict(
24 - packages=find_packages("src"),
25 + packages=find_packages("src", exclude=["*.test", "*.test.*"]),
27 setup_requires=["incremental >= 16.10.1"],
28 install_requires=requirements,
29 @@ -253,7 +247,7 @@ def getSetupArgs(extensions=_EXTENSIONS):
30 cmdclass=command_classes,
31 include_package_data=True,
32 exclude_package_data={
33 - "": ["*.c", "*.h", "*.pxi", "*.pyx", "build.bat"],
34 + "": ["*.c", "*.h", "*.pxi", "*.pyx", "build.bat", "test/*"],
37 extras_require=_EXTRAS_REQUIRE,