Files
pkgsrc-ng/lang/py-cxfreeze/patches/patch-aa
2016-01-21 23:40:00 +01:00

41 lines
1.8 KiB
Plaintext

$NetBSD: patch-aa,v 1.3 2015/03/21 19:26:47 joerg Exp $
--- setup.py.orig 2011-03-19 17:27:27.000000000 +0000
+++ setup.py
@@ -61,6 +61,7 @@ class build_ext(distutils.command.build_
fileName = os.path.splitext(self.get_ext_filename(ext.name))[0]
fullName = os.path.join(self.build_lib, fileName)
libraryDirs = ext.library_dirs or []
+ runtimeLibraryDirs = ext.runtime_library_dirs or []
libraries = self.get_libraries(ext)
extraArgs = ext.extra_link_args or []
if sys.platform != "win32":
@@ -78,6 +79,9 @@ class build_ext(distutils.command.build_
extraArgs.extend(vars["BASEMODLIBS"].split())
if vars["LOCALMODLIBS"]:
extraArgs.extend(vars["LOCALMODLIBS"].split())
+ else:
+ runtimeLibraryDirs.append(sys.prefix + "/lib")
+ libraryDirs.append(sys.prefix + "/lib")
extraArgs.append("-s")
elif ext.name.find("Win32GUI") > 0 \
and self.compiler.compiler_type == "mingw32":
@@ -85,7 +89,7 @@ class build_ext(distutils.command.build_
self.compiler.link_executable(objects, fullName,
libraries = libraries,
library_dirs = libraryDirs,
- runtime_library_dirs = ext.runtime_library_dirs,
+ runtime_library_dirs = runtimeLibraryDirs,
extra_postargs = extraArgs,
debug = self.debug)
@@ -238,7 +242,7 @@ setup(name = "cx_Freeze",
maintainer="Anthony Tuininga",
maintainer_email="anthony.tuininga@gmail.com",
url = "http://cx-freeze.sourceforge.net",
- scripts = ["cxfreeze"],
+ scripts = ["cxfreeze" + sys.version[:3]],
classifiers = classifiers,
keywords = "freeze",
license = "Python Software Foundation License")