Browse Source

Add patch to fix cx-freeze macos-universal target

Signed-off-by: falkTX <falktx@falktx.com>
pull/28/head
falkTX 2 years ago
parent
commit
cd7b760d6a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 20 additions and 0 deletions
  1. +20
    -0
      patches/cx_Freeze/macos-universal/01_pawpaw-aetup.patch

+ 20
- 0
patches/cx_Freeze/macos-universal/01_pawpaw-aetup.patch View File

@@ -0,0 +1,20 @@
diff --git a/setup.py b/setup.py
index 3149360..11a897e 100755
--- a/setup.py
+++ b/setup.py
@@ -38,12 +38,15 @@ class build_ext(setuptools.command.build_ext.build_ext):
include_dirs=ext.include_dirs,
debug=self.debug,
depends=ext.depends,
+ extra_preargs=subprocess.getoutput("pkg-config --cflags python3").split() + os.getenv("CFLAGS", "").split(),
)
filename = os.path.splitext(self.get_ext_filename(ext.name))[0]
fullname = os.path.join(self.build_lib, filename)
library_dirs = ext.library_dirs or []
libraries = self.get_libraries(ext)
extra_args = ext.extra_link_args or []
+ extra_args += subprocess.getoutput("pkg-config --libs python3").split()
+ extra_args += os.getenv("LDFLAGS", "").split()
if WIN32:
compiler_type = self.compiler.compiler_type
# support for delay load [windows]

Loading…
Cancel
Save