debian/0000775000000000000000000000000012101602674007167 5ustar debian/changelog0000664000000000000000000000357012101573261011045 0ustar cx-freeze (4.3.1-0ubuntu1) raring; urgency=low * New upstream release. * debian/rules: - Convert from simple-patchsys to quilt. - Don't try to install files which no longer exist upstream. * debian/patches: - series: added - setup_fix_build.patch: adjust for multiarch (however, cx_freeze itself is not yet multiarch aware). -- Barry Warsaw Mon, 28 Jan 2013 16:01:40 -0500 cx-freeze (4.0.1-0ubuntu6) precise; urgency=low * debian/patches/handle_pyc_in_load_module.patch: LP: #473610, #633594 - the web is crawling with reports of cx-freeze failing to compile even simple hello world python code - I have reproduced the issue on multiple Ubuntu development system, and adapted a "fix" from: + http://ubuntuforums.org/showthread.php?t=1500926 - basically, .pyc files need to be handled in a special manner -- Dustin Kirkland Mon, 13 Feb 2012 16:02:12 -0600 cx-freeze (4.0.1-0ubuntu5) precise; urgency=low * Rebuild to drop python2.6 dependencies. -- Matthias Klose Sat, 31 Dec 2011 02:02:02 +0000 cx-freeze (4.0.1-0ubuntu4) natty; urgency=low * Rebuild to add support for python 2.7. -- Matthias Klose Thu, 02 Dec 2010 23:59:14 +0000 cx-freeze (4.0.1-0ubuntu3) lucid; urgency=low * Don't link extension with LOCALMODLIBS. -- Matthias Klose Thu, 04 Feb 2010 01:27:40 +0100 cx-freeze (4.0.1-0ubuntu2) lucid; urgency=low * Rebuild for python2.6 as the default python version. -- Matthias Klose Mon, 01 Feb 2010 21:02:28 +0000 cx-freeze (4.0.1-0ubuntu1) karmic; urgency=low * Initial release (LP: #244560). * debian/patches/setup_remove_samples.patch: - Do not install and byte-compile directory "samples". -- Siegfried-Angel Gevatter Pujals Fri, 01 May 2009 00:23:34 +0200 debian/rules0000775000000000000000000000130112101572741010243 0ustar #!/usr/bin/make -f DEB_PYTHON_SYSTEM = pysupport include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk #DEB_INSTALL_DOCS_cx-freeze := doc/cx_Freeze.html DEB_INSTALL_EXAMPLES_cx-freeze := samples DEB_INSTALL_MANPAGES_cx-freeze := debian/cxfreeze.1 #DEB_INSTALL_CHANGELOGS_cx-freeze := HISTORY.txt # Abuse DEB_PYTHON_PRIVATE_MODULES_DIRS to exclude the contents of the # initscripts directory from being byte-compiled. DEB_PYTHON_PRIVATE_MODULES_DIRS = -X initscripts install/cx-freeze:: chmod -x $(CURDIR)/initscripts/*.py chrpath -d $(CURDIR)/build/lib.*/cx_Freeze/bases/* clean:: rm -f debian/pycompat debian/patches/0000775000000000000000000000000012101602674010616 5ustar debian/patches/setup_link_libs.patch0000664000000000000000000000114012101565046015022 0ustar --- a/setup.py +++ b/setup.py @@ -87,8 +87,6 @@ extraArgs.append(vars["LIBM"]) if vars["BASEMODLIBS"]: extraArgs.extend(vars["BASEMODLIBS"].split()) - if vars["LOCALMODLIBS"]: - extraArgs.extend(vars["LOCALMODLIBS"].split()) extraArgs.append("-s") elif ext.name.find("Win32GUI") > 0 \ and self.compiler.compiler_type == "mingw32": @@ -238,4 +236,3 @@ classifiers = classifiers, keywords = "freeze", license = "Python Software Foundation License") - debian/patches/series0000664000000000000000000000014712101566625012042 0ustar handle_pyc_in_load_module.patch setup_link_libs.patch setup_remove_samples.patch setup_fix_build.patch debian/patches/handle_pyc_in_load_module.patch0000664000000000000000000000076012101565646017011 0ustar --- a/cx_Freeze/finder.py +++ b/cx_Freeze/finder.py @@ -333,6 +333,11 @@ module = self._AddModule(name) module.file = path module.parent = parent + if fp.name.endswith(".pyc"): + # Compiled python; close/re-open to exit universal newline mode + type = imp.PY_COMPILED + fp.close() + fp = open(fp.name, "rb") if type == imp.PY_SOURCE: if sys.version_info[0] >= 3: import tokenize debian/patches/setup_remove_samples.patch0000664000000000000000000000074112101565635016107 0ustar # Do not install and byte-compile directory "samples". --- a/setup.py +++ b/setup.py @@ -122,7 +122,7 @@ def run(self): installCommand = self.get_finalized_command("install") installDir = getattr(installCommand, "install_lib") - sourceDirs = ["samples", "initscripts"] + sourceDirs = ["initscripts"] while sourceDirs: sourceDir = sourceDirs.pop(0) targetDir = os.path.join(installDir, "cx_Freeze", sourceDir) debian/patches/setup_fix_build.patch0000664000000000000000000000075612101571756015042 0ustar --- a/setup.py +++ b/setup.py @@ -87,6 +87,9 @@ extraArgs.append(vars["LIBM"]) if vars["BASEMODLIBS"]: extraArgs.extend(vars["BASEMODLIBS"].split()) + else: + extraArgs.append('-L' + vars['LIBPL']) + extraArgs.append(vars['BLDLIBRARY'].split()[-1]) extraArgs.append("-s") elif ext.name.find("Win32GUI") > 0 \ and self.compiler.compiler_type == "mingw32": debian/cxfreeze.10000664000000000000000000000644312101563420011066 0ustar .TH CXFREEZE "1" "May 2009" "cxfreeze 4.0.1" "User Commands" .SH NAME cxfreeze \- create standalone executables from Python scripts .SH SYNOPSIS .B cxfreeze [\fIoptions\fR] [\fISCRIPT\fR] .SH DESCRIPTION \fBcxfreeze\fP is an application to freeze Python scripts and all of the modules their reference into a base executable which can then be distributed without requiring a Python installation. .SH OPTIONS .TP \fB\-\-version\fR show program's version number and exit .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-O\fR optimize generated bytecode as per PYTHONOPTIMIZE; use \fB\-OO\fR in order to remove doc strings .TP \fB\-c\fR, \fB\-\-compress\fR compress byte code in zip files .TP \fB\-\-base\-name\fR=\fINAME\fR file on which to base the target file; if the name of the file is not an absolute file name, the subdirectory bases (rooted in the directory in which the freezer is found) will be searched for a file matching the name .TP \fB\-\-init\-script\fR=\fINAME\fR script which will be executed upon startup; if the name of the file is not an absolute file name, the subdirectory initscripts (rooted in the directory in which the cx_Freeze package is found) will be searched for a file matching the name .TP \fB\-\-target\-dir\fR=\fIDIR\fR, \fB\-\-install\-dir\fR=\fIDIR\fR the directory in which to place the target file and any dependent files .TP \fB\-\-target\-name\fR=\fINAME\fR the name of the file to create instead of the base name of the script and the extension of the base binary .TP \fB\-\-no\-copy\-deps\fR do not copy the dependent files (extensions, shared libraries, etc.) to the target directory; this also modifies the default init script to ConsoleKeepPath.py and means that the target executable requires a Python installation to execute properly .TP \fB\-\-default\-path\fR=\fIDIRS\fR list of paths separated by the standard path separator for the platform which will be used to initialize sys.path prior to running the module finder .TP \fB\-\-include\-path\fR=\fIDIRS\fR list of paths separated by the standard path separator for the platform which will be used to modify sys.path prior to running the module finder .TP \fB\-\-replace\-paths\fR=\fIDIRECTIVES\fR replace all the paths in modules found in the given paths with the given replacement string; multiple values are separated by the standard path separator and each value is of the form path=replacement_string; path can be * which means all paths not already specified .TP \fB\-\-include\-modules\fR=\fINAMES\fR comma separated list of modules to include .TP \fB\-\-exclude\-modules\fR=\fINAMES\fR comma separated list of modules to exclude .TP \fB\-\-ext\-list\-file\fR=\fINAME\fR name of file in which to place the list of dependent files which were copied into the target directory .TP \fB\-z\fR SPEC, \fB\-\-zip\-include\fR=\fISPEC\fR name of file to add to the zip file or a specification of the form name=arcname which will specify the archive name to use; multiple \fB\-\-zip\-include\fR arguments can be used .SH COPYRIGHT Copyright \(co 2007-2008 Colt Engineering. All rights reserved. .br Copyright \(co 2001-2006 Computronix Corporation. All rights reserved. .SH AUTHOR \fBcxfreeze\fP was written by Anthony Tuininga and this manual page by Siegfried-A. Gevatter . debian/compat0000664000000000000000000000000212101563420010360 0ustar 5 debian/copyright0000664000000000000000000000661512101563420011125 0ustar Format-Specification: http://dep.debian.net/deps/dep5/#index4h1 Name: cx_Freeze Maintainer: Anthony Tuininga Source: http://sourceforge.net/projects/cx-freeze/ Files: * Copyright: © 2001-2006, Computronix (Canada) Ltd., Edmonton, Alberta, Canada. © 2007-2008, Colt Engineering, Edmonton, Alberta, Canada. License: other All rights reserved. NOTE: this license is derived from the Python Software Foundation License which can be found at http://www.python.org/psf/license License for cx_Freeze --------------------- 1. This LICENSE AGREEMENT is between the copyright holders and the Individual or Organization ("Licensee") accessing and otherwise using cx_Freeze software in source or binary form and its associated documentation. 2. Subject to the terms and conditions of this License Agreement, the copyright holders hereby grant Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use cx_Freeze alone or in any derivative version, provided, however, that this License Agreement and this notice of copyright are retained in cx_Freeze alone or in any derivative version prepared by Licensee. 3. In the event Licensee prepares a derivative work that is based on or incorporates cx_Freeze or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to cx_Freeze. 4. The copyright holders are making cx_Freeze available to Licensee on an "AS IS" basis. THE COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, THE COPYRIGHT HOLDERS MAKE NO AND DISCLAIM ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF CX_FREEZE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 5. THE COPYRIGHT HOLDERS SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF CX_FREEZE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING CX_FREEZE, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between the copyright holders and Licensee. This License Agreement does not grant permission to use copyright holder's trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. 8. By copying, installing or otherwise using cx_Freeze, Licensee agrees to be bound by the terms and conditions of this License Agreement. Computronix® is a registered trademark of Computronix (Canada) Ltd. Files: doc/cx_Freeze.html Copyright: © David Goodger License: other This stylesheet has been placed in the public domain. Files: debian/* Copyright: © 2009, Siegfried-Angel Gevatter Pujals License: GPL or other See the license text for cx_Freeze, or /usr/share/common-licenses/GPL. You can use either of those licenses, at your option. debian/control0000664000000000000000000000206412101565363010577 0ustar Source: cx-freeze Section: python Priority: optional Maintainer: Siegfried-Angel Gevatter Pujals Build-Depends: cdbs (>= 0.4.49), quilt, debhelper (>= 5.0.38), python-all-dev (>= 2.4), python-support (>= 0.5.3), zlib1g-dev, chrpath Homepage: http://cx-freeze.sourceforge.net Standards-Version: 3.8.1 Package: cx-freeze Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-tk Description: create standalone executables from Python scripts cx_Freeze is an application which allows you to freeze Python code into executable files, in a way similar to how py2exe and py2app work. . There are three different ways how you can use cx_Freeze: * Use the included cxfreeze command which works well for simple scripts. * Create a distutils setup script which can be used for more complicated configurations or to retain the configuration for future use. * Work directly with the classes and modules used internally by cx_Freeze; this should be reserved for complicated scripts, extending or embedding. debian/source/0000775000000000000000000000000012101602674010467 5ustar debian/source/format0000664000000000000000000000001412101565503011674 0ustar 3.0 (quilt) debian/watch0000664000000000000000000000017012101563420010211 0ustar version=3 opts="uversionmangle=s/([0-9])([a-z])/$1~$2/" \ http://sf.net/cx-freeze/(?:cx-freeze|cx_Freeze)-(.*)\.tar\.gz debian/pyversions0000664000000000000000000000000512101563420011321 0ustar 2.4-