From 81e4d326016d0a1fc353532eacb232b45b1ea5bb Mon Sep 17 00:00:00 2001 From: DWesl <22566757+DWesl@users.noreply.github.com> Date: Sat, 20 Aug 2022 09:48:16 -0400 Subject: [PATCH 1/2] BLD: Don't specify runtime_library_dirs on Cygwin Closes #1113 (https://github.com/pyproj4/pyproj/issues/1113#issuecomment-1217315406), pypa/distutils#171 runtime_library_dirs isn't supported by PE/COFF, used by Windows and Cygwin; it seems to be an ELF thing. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d8c1872aa..d2cf64924 100644 --- a/setup.py +++ b/setup.py @@ -167,7 +167,7 @@ def get_extension_modules(): ext_options = { "include_dirs": include_dirs, "library_dirs": library_dirs, - "runtime_library_dirs": library_dirs if os.name != "nt" else None, + "runtime_library_dirs": library_dirs if os.name != "nt" and sys.platform != "cygwin" else None, "libraries": get_libraries(library_dirs), } # setup cythonized modules From 008386857cb0cabf3f0b7bf678d566e45730c4e0 Mon Sep 17 00:00:00 2001 From: DWesl <22566757+DWesl@users.noreply.github.com> Date: Sat, 20 Aug 2022 13:43:11 -0400 Subject: [PATCH 2/2] STY: Wrip line setting runtime_library_dirs --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d2cf64924..315326e46 100644 --- a/setup.py +++ b/setup.py @@ -167,7 +167,9 @@ def get_extension_modules(): ext_options = { "include_dirs": include_dirs, "library_dirs": library_dirs, - "runtime_library_dirs": library_dirs if os.name != "nt" and sys.platform != "cygwin" else None, + "runtime_library_dirs": ( + library_dirs if os.name != "nt" and sys.platform != "cygwin" else None + ), "libraries": get_libraries(library_dirs), } # setup cythonized modules