You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.2 KiB

  1. diff --git a/src/twisted/python/_setup.py b/src/twisted/python/_setup.py
  2. index 3b5f69d4b..2dca47aa5 100644
  3. --- a/src/twisted/python/_setup.py
  4. +++ b/src/twisted/python/_setup.py
  5. @@ -175,11 +175,6 @@ class ConditionalExtension(Extension, object):
  6. # The C extensions used for Twisted.
  7. _EXTENSIONS = [
  8. - ConditionalExtension(
  9. - "twisted.test.raiser",
  10. - sources=["src/twisted/test/raiser.c"],
  11. - condition=lambda _: _isCPython),
  12. -
  13. ConditionalExtension(
  14. "twisted.internet.iocpreactor.iocpsupport",
  15. sources=[
  16. @@ -232,7 +227,7 @@ def getSetupArgs(extensions=_EXTENSIONS):
  17. requirements.append("hyperlink >= 17.1.1")
  18. arguments.update(dict(
  19. - packages=find_packages("src"),
  20. + packages=find_packages("src", exclude=["*.test", "*.test.*"]),
  21. use_incremental=True,
  22. setup_requires=["incremental >= 16.10.1"],
  23. install_requires=requirements,
  24. @@ -241,6 +236,7 @@ def getSetupArgs(extensions=_EXTENSIONS):
  25. },
  26. cmdclass=command_classes,
  27. include_package_data=True,
  28. + exclude_package_data={'':['test/*']},
  29. zip_safe=False,
  30. extras_require=_EXTRAS_REQUIRE,
  31. package_dir={"": "src"},