head 1.6; access; symbols pkgsrc-2017Q4:1.5.0.2 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.4.0.8 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.4 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.2 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.3.0.16 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.14 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.12 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.10 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.8 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.6 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.4 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.2 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.2.0.22 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.20 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.18 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.16 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.14 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.12 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.8 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.4 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.2 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.1.1.1.0.14 pkgsrc-2012Q1-base:1.1.1.1 pkgsrc-2011Q4:1.1.1.1.0.12 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.10 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.8 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-2011Q1:1.1.1.1.0.6 pkgsrc-2011Q1-base:1.1.1.1 pkgsrc-2010Q4:1.1.1.1.0.4 pkgsrc-2010Q4-base:1.1.1.1 pkgsrc-2010Q3:1.1.1.1.0.2 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2018.02.09.08.04.41; author adam; state dead; branches; next 1.5; commitid 6PlVmOQTBLcCS9qA; 1.5 date 2017.12.27.23.32.37; author he; state Exp; branches; next 1.4; commitid ZSMDkOdWlNDNqAkA; 1.4 date 2017.02.14.09.54.30; author markd; state Exp; branches; next 1.3; commitid 4M48iHE5q4FqYTFz; 1.3 date 2015.03.21.19.26.47; author joerg; state Exp; branches; next 1.2; commitid O7ezeB3KLE8fBvey; 1.2 date 2012.05.22.08.28.47; author obache; state Exp; branches; next 1.1; 1.1 date 2010.08.15.10.45.57; author drochner; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2010.08.15.10.45.57; author drochner; state Exp; branches; next ; desc @@ 1.6 log @py-cxfreeze: updated to 5.1.1 Version 5.1.1: Correct code used to identify the directory in which the library and its zip file are located. Ensure that the pythoncom and pywintypes DLLs are found in the lib directory, not in the base directory. Copy dependent files to the same directory as the file it depends on, not the root directory; also add a sample for PyQt5 to demonstrate its correct use. Version 5.1: Use fixed library location on all platforms; should correct the error “no module named __startup__”. Correct sqlite3 hook for use in Python 2.7. Correct usage of scipy.lib. Correct handling of __path__ attribute in module. Fix gevent bug 42. Droppped support for Python 3.4. @ text @$NetBSD: patch-aa,v 1.5 2017/12/27 23:32:37 he Exp $ Link with proper run-time library path, link with -lpthread on NetBSD. --- setup.py.orig 2017-05-20 21:59:18.000000000 +0000 +++ setup.py @@@@ -71,6 +71,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": @@@@ -96,10 +97,12 @@@@ class build_ext(distutils.command.build_ if vars["LOCALMODLIBS"]: extraArgs.extend(vars["LOCALMODLIBS"].split()) extraArgs.append("-s") + runtimeLibraryDirs.append(sys.prefix + "/lib") + libraryDirs.append(sys.prefix + "/lib") 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) @@@@ -136,13 +139,17 @@@@ if sys.platform == "win32": if sys.platform == "win32": libraries = ["imagehlp", "Shlwapi"] else: - libraries = [] + if sys.platform.startswith('netbsd'): + libraries = ["pthread"] + else: + libraries = [] + utilModule = Extension("cx_Freeze.util", ["source/util.c"], libraries = libraries) # build base executables docFiles = "README.txt" -scripts = ["cxfreeze", "cxfreeze-quickstart"] +scripts = ["cxfreeze" + sys.version[:3], "cxfreeze-quickstart" + sys.version[:3]] options = dict(bdist_rpm = dict(doc_files = docFiles), install = dict(optimize = 1)) depends = ["source/bases/Common.c"] @ 1.5 log @Add a patch to setup.py so that -lphread is linked on NetBSD, since python's libpython.a(thread.o) wants those symbols. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update to py-cxfreeze 5.0.1 Version 5.0.1 (January 2017) * Added support for Python 3.6. * Corrected hooks for the pythoncom and pywintypes modules. * Use realpath() to get the absolute path of the executable; this resolves symbolic links and ensures that changing the path before all imports are complete does not result in the executable being unable to find modules. Version 5.0 (November 2016) * Added support for Python 3.5. * Switched from using C compiled frozen modules which embed part of the standard library to using the default named zip file and library file locations. This eliminates the need to recompile cx_Freeze for each new Python version as no parts of the standard library are included in the installation now. This also implies that appending a zip file to the executable is no longer supported since the standard name and location are used. * Removed unnecessary options and parameters from cx_Freeze. * Added support for Win32Service base with Python 3.x. * Add __version__ as an alias to version. * Updated hooks for PyQt, h5py. * Reallow including modules with non-identifier names. * Fix –add-to-path writing to the per-user instead of system environment * Do not import excluded submodules. * Add pyzmq hook * Add copyright and trademarks to version information * Fix compilation on Ubuntu * Set defaults in class directly, rather than as defaults in the function signature. * Added support for storing packages in the file system instead of in the zip file. There are a number of packages that assume that they are found in the file system and if found in a zip file instead produce strange errors. * Significantly simplified startup code. * Added logging statements for improved debugging. * Updated samples to handle recent updates to packages. * Avoid infinite loop for deferred imports which are cycles of one another. Version 4.3.4 (December 2014) * Rebuilt for Python 3.4.2. Dropped support for Python versions less than 2.6. * Correct stale comment. * Fix processing path specs from config when targets are not explicit. * Tweaks to improve compiling with MSVC 10 (2010) on Windows. * Added support for using the –deep and –resource-rules options when code signing through cx_Freeze on OS X. * Catch error if GetDependentFiles() is called on a non-library * Added FAQ entry on single file executables * Only look one level deep for implicit relative imports * Removed statement that was filtering out the ntpath module. Version 4.3.3 (May 2014) * Added support for release version of 3.4 * Added support for code signing in bdist_mac * Added custom Info.plist and Framework suport to bdist_mac * Added support for resolving dependencies on OS X where paths are relative * Added hook for QtWebKit module * Added support for finding packages inside zip files * Ensure that syntax errors in code do not prevent freezing from taking place but simply ignore those modules * Init scripts now use code that works in both Python 2 and 3 * Simplify service sample * Fix documentation for bdist_dmg * All options that accept multiple values are split on commas as documented Version 4.3.2 (October 2013) * Added support for Python 3.4. * Added hooks for PyQt4, PyQt5 and PySide to handle their plugins. * Added support for creating a shortcut/alias to the Applications directory within distributed DMG files for OS X. * Improve missing modules output. * Avoid polluting the extension module namespace when using the bootstrap module to load the extension. * Added support for using setuptools and pip if such tools are available. * Added first tests; nose and mock are required to run them. * Remove –bundle-iconfile in favor of –iconfile as a more generic method of including the icon for bdist_mac. * Documentation improved and FAQ added. * Converted samples to follow PEP 8. Version 4.3.1 (November 2012) * Added support for the final release of Python 3.3. * Added support for copying the MSVC runtime DLLs and manifest if desired by using the –include-msvcr switch. * Clarified the documentation on the –replace-paths option. Version 4.3 (July 2012) * Added options to build Mac OS X application bundles and DMG packages using bdist_mac and bdist_dmg distutils commands. * The documentation is now using Sphinx, and is available on ReadTheDocs.org. * Added support for Python 3.3 which uses a different compiled file format than earlier versions of Python. * Added support for Windows services which start automatically and which are capable of monitoring changes in sessions such as lock and unlock. * New cxfreeze-quickstart wizard to create a basic setup.py file. Initially written by Thomas Kluyver. * Included files under their original name can now be passed to include_files as a tuple with an empty second element. * File inclusions/exclusions can now be specified using a full path, or a shared library name with a version number suffix. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 2015/03/21 19:26:47 joerg Exp $ d3 4 a6 1 --- setup.py.orig 2017-01-07 16:04:26.000000000 +0000 d30 12 a41 1 @@@@ -142,7 +145,7 @@@@ utilModule = Extension("cx_Freeze.util", @ 1.3 log @Provide library path to libpython too. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.2 2012/05/22 08:28:47 obache Exp $ d3 1 a3 1 --- setup.py.orig 2011-03-19 17:27:27.000000000 +0000 d5 1 a5 1 @@@@ -61,6 +61,7 @@@@ class build_ext(distutils.command.build_ d12 4 a15 8 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") d17 2 a18 3 elif ext.name.find("Win32GUI") > 0 \ and self.compiler.compiler_type == "mingw32": @@@@ -85,7 +89,7 @@@@ class build_ext(distutils.command.build_ d27 9 a35 9 @@@@ -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") @ 1.2 log @Update py-cxfreeze to 4.2.3. While here, * register egg-info. * add patch to enable rpath, custom post-build should not be required anymore. Changes from 4.2.2 to 4.2.3 1) Added support for Python 3.2. 2) Added hook for datetime module which implicitly imports the time module. 3) Fixed hook for tkinter in Python 3.x. 4) Always include the zlib module since the zipimport module requires it, even when compression is not taking place. 5) Added sample for a tkinter application. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1.1.1 2010/08/15 10:45:57 drochner Exp $ d13 1 a13 1 @@@@ -78,6 +79,8 @@@@ class build_ext(distutils.command.build_ d19 1 d23 1 a23 1 @@@@ -85,7 +88,7 @@@@ class build_ext(distutils.command.build_ d32 1 a32 1 @@@@ -238,7 +241,7 @@@@ setup(name = "cx_Freeze", @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- setup.py.orig 2010-07-19 19:00:21.000000000 +0000 d5 27 a31 1 @@@@ -238,7 +238,7 @@@@ setup(name = "cx_Freeze", @ 1.1.1.1 log @add py-cxfreeze-4.2, a (sort of) compiler which makes a standalone executable of a Python script, from Helge Muehlmeier per pkgsrc-wip This pkg abuses Python distutils in a non-portable way, so I've added a hack which relinks the startup code behind setuptools' back. This is easier than patching the setup.py script into doing trt. @ text @@