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.

31 lines
1.1 KiB

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