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.

37 lines
1.3 KiB

  1. --- a/src/twisted/python/_setup.py
  2. +++ b/src/twisted/python/_setup.py
  3. @@ -169,11 +169,6 @@ class ConditionalExtension(Extension, object):
  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. @@ -238,12 +233,11 @@ def getSetupArgs(extensions=_EXTENSIONS):
  15. "incremental >= 16.10.1",
  16. "Automat >= 0.3.0",
  17. "hyperlink >= 17.1.1",
  18. - "PyHamcrest >= 1.9.0",
  19. "attrs >= 17.4.0",
  20. ]
  21. arguments.update(dict(
  22. - packages=find_packages("src"),
  23. + packages=find_packages("src", exclude=["*.test", "*.test.*"]),
  24. use_incremental=True,
  25. setup_requires=["incremental >= 16.10.1"],
  26. install_requires=requirements,
  27. @@ -253,7 +247,7 @@ def getSetupArgs(extensions=_EXTENSIONS):
  28. cmdclass=command_classes,
  29. include_package_data=True,
  30. exclude_package_data={
  31. - "": ["*.c", "*.h", "*.pxi", "*.pyx", "build.bat"],
  32. + "": ["*.c", "*.h", "*.pxi", "*.pyx", "build.bat", "test/*"],
  33. },
  34. zip_safe=False,
  35. extras_require=_EXTRAS_REQUIRE,