Cross-Platform build scripts for audio plugins
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.

60 lines
1.7KB

  1. diff --git a/setup.py b/setup.py
  2. index 52babbc..60426d4 100755
  3. --- a/setup.py
  4. +++ b/setup.py
  5. @@ -1017,7 +1017,6 @@ try:
  6. packages=["PIL"],
  7. package_dir={"": "src"},
  8. keywords=["Imaging"],
  9. - zip_safe=not (debug_build() or PLATFORM_MINGW),
  10. )
  11. except RequiredDependencyException as err:
  12. msg = f"""
  13. diff --git a/src/libImaging/ImPlatform.h b/src/libImaging/ImPlatform.h
  14. index 9a2060e..c956fc0 100644
  15. --- a/src/libImaging/ImPlatform.h
  16. +++ b/src/libImaging/ImPlatform.h
  17. @@ -34,7 +34,7 @@
  18. #ifdef _WIN32
  19. #define WIN32_LEAN_AND_MEAN
  20. -#include <Windows.h>
  21. +#include <windows.h>
  22. #else
  23. /* For System that are not Windows, we'll need to define these. */
  24. diff --git a/setup.py b/setup.py
  25. index 60426d4..2a922ea 100755
  26. --- a/setup.py
  27. +++ b/setup.py
  28. @@ -291,7 +291,7 @@ class pil_build_ext(build_ext):
  29. "xcb",
  30. ]
  31. - required = {"jpeg", "zlib"}
  32. + required = {"zlib"}
  33. vendor = set()
  34. def __init__(self):
  35. diff --git a/setup.py b/setup.py
  36. index 60426d4..0596287 100755
  37. --- a/setup.py
  38. +++ b/setup.py
  39. @@ -572,16 +572,6 @@ class pil_build_ext(build_ext):
  40. # FIXME: check /opt/stuff directories here?
  41. - # standard locations
  42. - if not self.disable_platform_guessing:
  43. - _add_directory(library_dirs, "/usr/local/lib")
  44. - _add_directory(include_dirs, "/usr/local/include")
  45. -
  46. - _add_directory(library_dirs, "/usr/lib")
  47. - _add_directory(include_dirs, "/usr/include")
  48. - # alpine, at least
  49. - _add_directory(library_dirs, "/lib")
  50. -
  51. if sys.platform == "win32":
  52. # on Windows, look for the OpenJPEG libraries in the location that
  53. # the official installer puts them