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.2 KiB

  1. diff --git a/setup.py b/setup.py
  2. index d10f17d..d347d64 100755
  3. --- a/setup.py
  4. +++ b/setup.py
  5. @@ -40,11 +40,12 @@ def main(args):
  6. setup_args = STATIC_PACKAGE_METADATA.copy()
  7. setup_args.update(dict(
  8. - packages=setuptools.find_packages(),
  9. + packages=setuptools.find_packages(exclude=["*.test", "*.test.*"]),
  10. install_requires=requirements,
  11. conditionalExtensions=getExtensions(),
  12. scripts=getScripts(),
  13. include_package_data=True,
  14. + exclude_package_data={'':['test/*']},
  15. zip_safe=False,
  16. extras_require=_EXTRAS_REQUIRE,
  17. ))
  18. diff --git a/twisted/python/dist.py b/twisted/python/dist.py
  19. index aac2756..5633f09 100644
  20. --- a/twisted/python/dist.py
  21. +++ b/twisted/python/dist.py
  22. @@ -182,10 +182,10 @@ def getExtensions():
  23. Get the C extensions used for Twisted.
  24. """
  25. extensions = [
  26. - ConditionalExtension(
  27. - "twisted.test.raiser",
  28. - ["twisted/test/raiser.c"],
  29. - condition=lambda _: _isCPython),
  30. + #ConditionalExtension(
  31. + # "twisted.test.raiser",
  32. + # ["twisted/test/raiser.c"],
  33. + # condition=lambda _: _isCPython),
  34. ConditionalExtension(
  35. "twisted.internet.iocpreactor.iocpsupport",