From 72bc2b45f7bc71da7fb63c0d9796f944373457cb Mon Sep 17 00:00:00 2001 From: giovannibajo Date: Mon, 12 Sep 2005 09:33:09 +0000 Subject: [PATCH] Switch to GPL license (with exception) git-svn-id: http://svn.pyinstaller.org/trunk@43 8dd32b29-ccff-0310-8a9a-9233e24343b1 --- ArchiveViewer.py | 17 +++++++++ Build.py | 17 +++++++++ Configure.py | 19 ++++++++++ GrabVersion.py | 17 +++++++++ MakeCOMServer_old.py | 16 +++++++++ MakeComServer.py | 16 +++++++++ Makespec.py | 17 +++++++++ archive.py | 23 ++++++++++++- bindepend.py | 20 +++++++++-- buildtests/runtests.py | 16 +++++++++ buildtests/test1.py | 16 +++++++++ buildtests/test2.py | 16 +++++++++ buildtests/test3.py | 16 +++++++++ buildtests/test4.py | 16 +++++++++ buildtests/test5.py | 16 +++++++++ buildtests/test6.py | 17 ++++++++- buildtests/test6x.py | 16 +++++++++ buildtests/test7.py | 18 +++++++++- buildtests/test7x.py | 18 +++++++++- buildtests/test8.py | 16 +++++++++ carchive.py | 21 ++++++++--- e2etests/common/maketests.py | 19 +++++++++- e2etests/win32/NextID.py | 19 +++++++++- e2etests/win32/testMSOffice.py | 46 +++++++++++++++++-------- e2etests/win32/testcomext.py | 19 +++++++++- hooks/__init__.py | 17 +++++++++ hooks/hook-DateTime.mxDateTime.py | 16 +++++++++ hooks/hook-DateTime.py | 16 +++++++++ hooks/hook-Image.py | 18 ++++++++-- hooks/hook-PIL.Image.py | 18 ++++++++-- hooks/hook-_sre.py | 16 +++++++++ hooks/hook-anydbm.py | 17 +++++++++ hooks/hook-cPickle.py | 16 +++++++++ hooks/hook-cStringIO.py | 16 +++++++++ hooks/hook-carchive.py | 16 +++++++++ hooks/hook-codecs.py | 16 +++++++++ hooks/hook-encodings.py | 19 +++++++++- hooks/hook-iu.py | 16 +++++++++ hooks/hook-os.py | 26 +++++++++++--- hooks/hook-parser.py | 16 +++++++++ hooks/hook-pyexpat.py | 18 +++++++++- hooks/hook-pythoncom.py | 17 +++++++++ hooks/hook-pywintypes.py | 16 +++++++++ hooks/hook-qt.py | 17 +++++++++ hooks/hook-regex.py | 17 +++++++++ hooks/hook-vtkpython.py | 17 +++++++++ hooks/hook-win32com.client.py | 17 +++++++++ hooks/hook-win32com.py | 17 +++++++++ hooks/hook-win32ui.py | 17 +++++++++ hooks/hook-xml.dom.domreg.py | 19 +++++++++- hooks/hook-xml.dom.ext.py | 19 +++++++++- hooks/hook-xml.dom.ext.reader.py | 17 +++++++++ hooks/hook-xml.dom.html.HTMLDocument.py | 17 +++++++++ hooks/hook-xml.dom.html.py | 19 +++++++++- hooks/hook-xml.dom.py | 19 +++++++++- hooks/hook-xml.py | 17 +++++++++ hooks/hook-xml.sax.py | 23 +++++++++++-- hooks/hook-xml.sax.saxexts.py | 17 +++++++++ icon.py | 18 ++++++++++ iu.py | 25 ++++++++++++++ mf.py | 16 +++++++++ source/common/launch.c | 28 ++++++++++++--- source/common/launch.h | 27 +++++++++++++++ source/linux/Make.py | 20 +++++++++-- source/linux/bkfile.py | 27 ++++++++++++--- source/linux/main.c | 27 +++++++++++++++ source/linux/makemakefile.py | 18 +++++++++- source/linux/parsesetup.py | 16 +++++++++ source/windows/dllmain.c | 27 +++++++++++++++ source/windows/resource.h | 27 +++++++++++++++ source/windows/winmain.c | 27 +++++++++++++++ support/_mountzlib.py | 16 +++++++++ support/removeTK.py | 16 +++++++++ support/rthooks/versioneddll.py | 27 ++++++++++++++- support/rthooks/win32comgenpy.py | 25 ++++++++++++++ support/unpackTK.py | 16 +++++++++ versionInfo.py | 18 ++++++++-- 77 files changed, 1405 insertions(+), 62 deletions(-) diff --git a/ArchiveViewer.py b/ArchiveViewer.py index b33247d..836e558 100644 --- a/ArchiveViewer.py +++ b/ArchiveViewer.py @@ -1,4 +1,21 @@ #! /usr/bin/env python +# Viewer for archives packaged by archive.py +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import archive import carchive import sys, string, tempfile, os diff --git a/Build.py b/Build.py index e58c1ef..24c1674 100644 --- a/Build.py +++ b/Build.py @@ -1,4 +1,21 @@ #! /usr/bin/env python +# Build packages using spec files +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys, os, shutil, mf, archive, iu, carchive, pprint, time, py_compile, bindepend, tempfile STRINGTYPE = type('') diff --git a/Configure.py b/Configure.py index 3a60d12..64341aa 100644 --- a/Configure.py +++ b/Configure.py @@ -1,4 +1,21 @@ #! /usr/bin/env python +# Configure PyInstaller for the current Python installation. +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import os, sys, string, shutil HOME = os.path.dirname(sys.argv[0]) @@ -35,6 +52,7 @@ config['EXE_dependencies'] = toc[1:] _useTK = """\ # Generated by Configure.py +# This file is public domain import os, sys try: basedir = os.environ['_MEIPASS2'] @@ -143,6 +161,7 @@ else: _useUnicode = """\ # Generated by Configure.py +# This file is public domain import %s """ diff --git a/GrabVersion.py b/GrabVersion.py index 0057629..0d59732 100644 --- a/GrabVersion.py +++ b/GrabVersion.py @@ -1,3 +1,20 @@ +#! /usr/bin/env python +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import versionInfo import sys diff --git a/MakeCOMServer_old.py b/MakeCOMServer_old.py index 309b6ec..e2f9b74 100644 --- a/MakeCOMServer_old.py +++ b/MakeCOMServer_old.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import string, os, sys, win32api, Makespec modspec = """\ diff --git a/MakeComServer.py b/MakeComServer.py index c370847..b02669d 100644 --- a/MakeComServer.py +++ b/MakeComServer.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import string, os, sys, win32api, Makespec tmplt = """\ diff --git a/Makespec.py b/Makespec.py index 5e7d17e..ade5007 100644 --- a/Makespec.py +++ b/Makespec.py @@ -1,4 +1,21 @@ #! /usr/bin/env/python +# Automatically build spec files containing a description of the project +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys, os, string diff --git a/archive.py b/archive.py index a3b137b..2d521f0 100644 --- a/archive.py +++ b/archive.py @@ -1,6 +1,27 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # -# Gordon McMillan (as inspired and influenced by Greg Stein) +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. # +# In addition to the permissions in the GNU General Public License, the +# authors give you unlimited permission to link or embed the compiled +# version of this file into combinations with other programs, and to +# distribute those combinations without any restriction coming from the +# use of this file. (The General Public License restrictions do apply in +# other respects; for example, they cover modification of the file, and +# distribution when not linked into a combine executable.) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA # subclasses may not need marshal or struct, but since they're # builtin, importing is safe. diff --git a/bindepend.py b/bindepend.py index 32378c5..af592bb 100644 --- a/bindepend.py +++ b/bindepend.py @@ -1,6 +1,22 @@ -# copyright 1999 McMillan Enterprises, Inc. -# license: use as you please. No warranty. +#! /usr/bin/env python +# Find external dependencies of binary libraries. +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + # use dumpbin.exe (if present) to find the binary # dependencies of an extension module. # if dumpbin not available, pick apart the PE hdr of the binary diff --git a/buildtests/runtests.py b/buildtests/runtests.py index 7678356..26b5d0b 100644 --- a/buildtests/runtests.py +++ b/buildtests/runtests.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import os, sys, glob, string import shutil try: diff --git a/buildtests/test1.py b/buildtests/test1.py index 8250cfa..d391665 100644 --- a/buildtests/test1.py +++ b/buildtests/test1.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA print "test1 - hooks / strange pkg structures" e1 = 'a_func from pkg2.a' e2 = 'b_func from pkg2.b (pkg2/extra/b.py)' diff --git a/buildtests/test2.py b/buildtests/test2.py index 3fa599e..6067954 100644 --- a/buildtests/test2.py +++ b/buildtests/test2.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA print "test2 - version, icon, no zlib (should run same as test1)" e1 = 'a_func from pkg2.a' e2 = 'b_func from pkg2.b (pkg2/extra/b.py)' diff --git a/buildtests/test3.py b/buildtests/test3.py index 17b72ff..107541a 100644 --- a/buildtests/test3.py +++ b/buildtests/test3.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA print "test3 - test 'f' option (just show os.environ)" import os, sys if sys.platform[:3] == 'win': diff --git a/buildtests/test4.py b/buildtests/test4.py index 1dca84e..05a4517 100644 --- a/buildtests/test4.py +++ b/buildtests/test4.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA print "test4 - unbufferred" print "type: 123456" print "should see: 12345" diff --git a/buildtests/test5.py b/buildtests/test5.py index 199507f..64a0660 100644 --- a/buildtests/test5.py +++ b/buildtests/test5.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA print "test5 - W ignore" import regex print "test5 - done" diff --git a/buildtests/test6.py b/buildtests/test6.py index 6a6ab95..4c16a28 100644 --- a/buildtests/test6.py +++ b/buildtests/test6.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys, os import test6x print "test6x.x is", test6x.x @@ -11,4 +27,3 @@ else: reload(test6x) print "test6x.x is now", test6x.x - \ No newline at end of file diff --git a/buildtests/test6x.py b/buildtests/test6x.py index 7d4290a..376aca0 100644 --- a/buildtests/test6x.py +++ b/buildtests/test6x.py @@ -1 +1,17 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA x = 1 diff --git a/buildtests/test7.py b/buildtests/test7.py index cc84f56..db9002a 100644 --- a/buildtests/test7.py +++ b/buildtests/test7.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys import threading @@ -6,7 +22,7 @@ def doit(nm): import test7x print nm, test7x.x -t1 = threading.Thread(target=doit, args=('t1',)) +t1 = threading.Thread(target=doit, args=('t1',)) t2 = threading.Thread(target=doit, args=('t2',)) t1.start() t2.start() diff --git a/buildtests/test7x.py b/buildtests/test7x.py index 14d0606..970a87a 100644 --- a/buildtests/test7x.py +++ b/buildtests/test7x.py @@ -1,5 +1,21 @@ -#nasty +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +#nasty import time time.sleep(5) x = 5 diff --git a/buildtests/test8.py b/buildtests/test8.py index d85dcbd..83a9b15 100644 --- a/buildtests/test8.py +++ b/buildtests/test8.py @@ -1,4 +1,20 @@ #!/usr/bin/env python +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys try: diff --git a/carchive.py b/carchive.py index 924c860..faabf6e 100644 --- a/carchive.py +++ b/carchive.py @@ -1,9 +1,20 @@ -# copyright 1999 McMillan Enterprises, Inc. -# license: use as you please. No warranty. +# Subclass of Archive that can be understood by a C program (see launch.c). +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc. # -# A subclass of Archive that can be understood -# by a C program. See uplaunch.cpp for unpacking -# from C. +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import archive import struct try: diff --git a/e2etests/common/maketests.py b/e2etests/common/maketests.py index 5236ea1..066a4c9 100644 --- a/e2etests/common/maketests.py +++ b/e2etests/common/maketests.py @@ -1,3 +1,20 @@ +#!/usr/bin/env python +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys, string, os if sys.platform[:3] == 'win': stripopts = ('',) @@ -31,4 +48,4 @@ for bldconfig in ('--onedir', '--onefile'): else: os.system("ln -s /u/temp/t%d/hanoi hanoi%d" % (i,i)) i += 1 - + diff --git a/e2etests/win32/NextID.py b/e2etests/win32/NextID.py index 41384ad..98631ce 100644 --- a/e2etests/win32/NextID.py +++ b/e2etests/win32/NextID.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + #import pythoncom pycomCLSCTX_INPROC = 3 pycomCLSCTX_LOCAL_SERVER = 4 @@ -47,7 +64,7 @@ def RegisterNextID(): def UnRegisterNextID(): from win32com.server import register register.UnregisterServer(NextID._reg_clsid_, NextID._reg_progid_) - + if __name__ == '__main__': import sys if "/unreg" in sys.argv: diff --git a/e2etests/win32/testMSOffice.py b/e2etests/win32/testMSOffice.py index 4115875..b2232f8 100644 --- a/e2etests/win32/testMSOffice.py +++ b/e2etests/win32/testMSOffice.py @@ -1,3 +1,21 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + # Test MSOffice # # Main purpose of test is to ensure that Dynamic COM objects @@ -24,7 +42,7 @@ def TestWord(): word = win32com.client.dynamic.Dispatch("Word.Application") TestWord8(word) - word = None + word = None # Now we will test Dispatch without the new "lazy" capabilities print "Starting Word 8 for non-lazy dynamic test" dispatch = win32com.client.dynamic._GetGoodDispatch("Word.Application") @@ -39,14 +57,14 @@ def TestWord(): print "Starting Word 7 for dynamic test" word = win32com.client.Dispatch("Word.Basic") TestWord7(word) - + try: print "Starting MSWord for generated test" # Typelib, lcid, major and minor for the typelib - try: - o = gencache.EnsureModule("{00020905-0000-0000-C000-000000000046}", 1033, 8, 0, bForDemand=1) - except TypeError: - o = gencache.EnsureModule("{00020905-0000-0000-C000-000000000046}", 1033, 8, 0) + try: + o = gencache.EnsureModule("{00020905-0000-0000-C000-000000000046}", 1033, 8, 0, bForDemand=1) + except TypeError: + o = gencache.EnsureModule("{00020905-0000-0000-C000-000000000046}", 1033, 8, 0) if o is None : raise ImportError, "Can not load the Word8 typelibrary." word = win32com.client.Dispatch("Word.Application.8") @@ -58,11 +76,11 @@ def TestWord7(word): word.FileNew() # If not shown, show the app. if not word.AppShow(): word._proc_("AppShow") - + for i in xrange(12): word.FormatFont(Color=i+1, Points=i+12) word.Insert("Hello from Python %d\n" % i) - + word.FileClose(2) def TestWord8(word): @@ -91,7 +109,7 @@ def TestWord8OldStyle(): except ImportError: print "Can not do old style test" - + def TextExcel(xl): xl.Visible = 0 if xl.Visible: raise error, "Visible property is true." @@ -102,7 +120,7 @@ def TextExcel(xl): xl.Workbooks.Add() else: xl.Workbooks().Add() - + xl.Range("A1:C1").Value = (1,2,3) xl.Range("A2:C2").Value = ('x','y','z') @@ -151,10 +169,10 @@ def TestAll(): try: print "Starting Excel 8 for generated excel8.py test..." - try: - mod = gencache.EnsureModule("{00020813-0000-0000-C000-000000000046}", 0, 1, 2, bForDemand=1) - except TypeError: - mod = gencache.EnsureModule("{00020813-0000-0000-C000-000000000046}", 0, 1, 2) + try: + mod = gencache.EnsureModule("{00020813-0000-0000-C000-000000000046}", 0, 1, 2, bForDemand=1) + except TypeError: + mod = gencache.EnsureModule("{00020813-0000-0000-C000-000000000046}", 0, 1, 2) xl = win32com.client.Dispatch("Excel.Application") TextExcel(xl) except ImportError: diff --git a/e2etests/win32/testcomext.py b/e2etests/win32/testcomext.py index 07e03c4..1e186ba 100644 --- a/e2etests/win32/testcomext.py +++ b/e2etests/win32/testcomext.py @@ -1,3 +1,20 @@ +#! /usr/bin/env python +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA from win32com.shell import shell import win32api import pythoncom @@ -41,4 +58,4 @@ if __name__ == "__main__": print "Failed!", e import traceback traceback.print_exc() - raw_input("Press any key to continue...") \ No newline at end of file + raw_input("Press any key to continue...") diff --git a/hooks/__init__.py b/hooks/__init__.py index 1bb8bf6..aed1ccb 100644 --- a/hooks/__init__.py +++ b/hooks/__init__.py @@ -1 +1,18 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + # empty diff --git a/hooks/hook-DateTime.mxDateTime.py b/hooks/hook-DateTime.mxDateTime.py index 4c49e37..2820f6d 100644 --- a/hooks/hook-DateTime.mxDateTime.py +++ b/hooks/hook-DateTime.mxDateTime.py @@ -1 +1,17 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA attrs = [('__version__', '1.3.0')] diff --git a/hooks/hook-DateTime.py b/hooks/hook-DateTime.py index 3d252b2..48294f6 100644 --- a/hooks/hook-DateTime.py +++ b/hooks/hook-DateTime.py @@ -1 +1,17 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA hiddenimports = ['ISO', 'ARPA', 'ODMG', 'Locale', 'Feasts', 'Parser', 'NIST'] diff --git a/hooks/hook-Image.py b/hooks/hook-Image.py index c08b7e2..c5f523e 100644 --- a/hooks/hook-Image.py +++ b/hooks/hook-Image.py @@ -1,5 +1,19 @@ -# hook-Image.py -# helper module for Gordon's Installer +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA hiddenimports = [] diff --git a/hooks/hook-PIL.Image.py b/hooks/hook-PIL.Image.py index c08b7e2..c5f523e 100644 --- a/hooks/hook-PIL.Image.py +++ b/hooks/hook-PIL.Image.py @@ -1,5 +1,19 @@ -# hook-Image.py -# helper module for Gordon's Installer +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA hiddenimports = [] diff --git a/hooks/hook-_sre.py b/hooks/hook-_sre.py index 33b060d..5643bb4 100644 --- a/hooks/hook-_sre.py +++ b/hooks/hook-_sre.py @@ -1 +1,17 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA hiddenimports = ['copy_reg'] diff --git a/hooks/hook-anydbm.py b/hooks/hook-anydbm.py index a6f3c00..cb15dfe 100644 --- a/hooks/hook-anydbm.py +++ b/hooks/hook-anydbm.py @@ -1,2 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + #anydbm hiddenimports = ['dbhash', 'gdbm', 'dbm', 'dumbdbm'] diff --git a/hooks/hook-cPickle.py b/hooks/hook-cPickle.py index 0b5d9c2..77b0099 100644 --- a/hooks/hook-cPickle.py +++ b/hooks/hook-cPickle.py @@ -1 +1,17 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA hiddenimports = ['copy_reg', 'types', 'string'] diff --git a/hooks/hook-cStringIO.py b/hooks/hook-cStringIO.py index 33b060d..5643bb4 100644 --- a/hooks/hook-cStringIO.py +++ b/hooks/hook-cStringIO.py @@ -1 +1,17 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA hiddenimports = ['copy_reg'] diff --git a/hooks/hook-carchive.py b/hooks/hook-carchive.py index 73a56c6..43aec87 100644 --- a/hooks/hook-carchive.py +++ b/hooks/hook-carchive.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys def hook(mod): diff --git a/hooks/hook-codecs.py b/hooks/hook-codecs.py index b8d908c..ad9dd0d 100644 --- a/hooks/hook-codecs.py +++ b/hooks/hook-codecs.py @@ -1 +1,17 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA hiddenimports = ['encodings'] diff --git a/hooks/hook-encodings.py b/hooks/hook-encodings.py index ade12af..02d6938 100644 --- a/hooks/hook-encodings.py +++ b/hooks/hook-encodings.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + #encodings', attrs = [('search_function',0)] hiddenimports = ['utf_16', @@ -60,4 +77,4 @@ hiddenimports = ['utf_16', 'cp852', 'cp1026', 'iso8859_8', - ] \ No newline at end of file + ] diff --git a/hooks/hook-iu.py b/hooks/hook-iu.py index ab4029c..33556ef 100644 --- a/hooks/hook-iu.py +++ b/hooks/hook-iu.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys, string def hook(mod): diff --git a/hooks/hook-os.py b/hooks/hook-os.py index e624b2d..7c3f5b6 100644 --- a/hooks/hook-os.py +++ b/hooks/hook-os.py @@ -1,21 +1,37 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys, string def hook(mod): names = sys.builtin_module_names if 'posix' in names: - removes = ['nt', 'ntpath', 'dos', 'dospath', 'os2', 'mac', 'macpath', + removes = ['nt', 'ntpath', 'dos', 'dospath', 'os2', 'mac', 'macpath', 'ce', 'riscos', 'riscospath', 'win32api', 'riscosenviron'] elif 'nt' in names: - removes = ['dos', 'dospath', 'os2', 'mac', 'macpath', 'ce', 'riscos', + removes = ['dos', 'dospath', 'os2', 'mac', 'macpath', 'ce', 'riscos', 'riscospath', 'riscosenviron',] elif 'os2' in names: - removes = ['nt', 'dos', 'dospath', 'mac', 'macpath', 'win32api', 'ce', + removes = ['nt', 'dos', 'dospath', 'mac', 'macpath', 'win32api', 'ce', 'riscos', 'riscospath', 'riscosenviron',] elif 'dos' in names: - removes = ['nt', 'ntpath', 'os2', 'mac', 'macpath', 'win32api', 'ce', + removes = ['nt', 'ntpath', 'os2', 'mac', 'macpath', 'win32api', 'ce', 'riscos', 'riscospath', 'riscosenviron',] elif 'mac' in names: - removes = ['nt', 'ntpath', 'dos', 'dospath', 'os2', 'win32api', 'ce', + removes = ['nt', 'ntpath', 'dos', 'dospath', 'os2', 'win32api', 'ce', 'riscos', 'riscospath', 'riscosenviron',] for i in range(len(mod.imports)-1, -1, -1): nm = mod.imports[i][0] diff --git a/hooks/hook-parser.py b/hooks/hook-parser.py index 33b060d..5643bb4 100644 --- a/hooks/hook-parser.py +++ b/hooks/hook-parser.py @@ -1 +1,17 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA hiddenimports = ['copy_reg'] diff --git a/hooks/hook-pyexpat.py b/hooks/hook-pyexpat.py index 4f29c67..676c98f 100644 --- a/hooks/hook-pyexpat.py +++ b/hooks/hook-pyexpat.py @@ -1,2 +1,18 @@ -#pyexpat +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + hiddenimports = ['xmlparse', 'xmltok'] diff --git a/hooks/hook-pythoncom.py b/hooks/hook-pythoncom.py index 94f8967..23db67e 100644 --- a/hooks/hook-pythoncom.py +++ b/hooks/hook-pythoncom.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + hiddenimports = ['win32com.server.policy'] def hook(mod): diff --git a/hooks/hook-pywintypes.py b/hooks/hook-pywintypes.py index 9e83e16..0c0cbb4 100644 --- a/hooks/hook-pywintypes.py +++ b/hooks/hook-pywintypes.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA def hook(mod): import sys diff --git a/hooks/hook-qt.py b/hooks/hook-qt.py index ae9502d..5f126b3 100644 --- a/hooks/hook-qt.py +++ b/hooks/hook-qt.py @@ -1,2 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + # PyQt (qt.pyd) has a secret dependence on sip.pyd hiddenimports = ['sip'] diff --git a/hooks/hook-regex.py b/hooks/hook-regex.py index a9fd7c3..6373058 100644 --- a/hooks/hook-regex.py +++ b/hooks/hook-regex.py @@ -1 +1,18 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + hiddenimports = ['warnings'] diff --git a/hooks/hook-vtkpython.py b/hooks/hook-vtkpython.py index da1b017..951d77b 100644 --- a/hooks/hook-vtkpython.py +++ b/hooks/hook-vtkpython.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + # courtesy of David C. Morrill (4/2/2002) import os if os.name == 'posix': diff --git a/hooks/hook-win32com.client.py b/hooks/hook-win32com.client.py index 43171c8..1f5654d 100644 --- a/hooks/hook-win32com.client.py +++ b/hooks/hook-win32com.client.py @@ -1 +1,18 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + attrs = [('NeedUnicodeConversions', 0), ('Dispatch',0)] diff --git a/hooks/hook-win32com.py b/hooks/hook-win32com.py index 7140e1f..467cf9e 100644 --- a/hooks/hook-win32com.py +++ b/hooks/hook-win32com.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + import os def hook(mod): diff --git a/hooks/hook-win32ui.py b/hooks/hook-win32ui.py index 991fdec..b3dfb9a 100644 --- a/hooks/hook-win32ui.py +++ b/hooks/hook-win32ui.py @@ -1 +1,18 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + hiddenimports = ['cStringIO', 'traceback'] diff --git a/hooks/hook-xml.dom.domreg.py b/hooks/hook-xml.dom.domreg.py index bdfb253..ae2e2bb 100644 --- a/hooks/hook-xml.dom.domreg.py +++ b/hooks/hook-xml.dom.domreg.py @@ -1,2 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + #xml.dom.domreg line 54 -hiddenimports = ['xml.dom.minidom','xml.dom.DOMImplementation'] \ No newline at end of file +hiddenimports = ['xml.dom.minidom','xml.dom.DOMImplementation'] diff --git a/hooks/hook-xml.dom.ext.py b/hooks/hook-xml.dom.ext.py index ac02f88..3418768 100644 --- a/hooks/hook-xml.dom.ext.py +++ b/hooks/hook-xml.dom.ext.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + attrs = [('Node',0), ('NodeFilter',0), ('XML_NAMESPACE',0), @@ -20,4 +37,4 @@ attrs = [('Node',0), ('GetAllNs',0), ('SplitQName',0), ('SeekNss',0), - ] \ No newline at end of file + ] diff --git a/hooks/hook-xml.dom.ext.reader.py b/hooks/hook-xml.dom.ext.reader.py index 1465b3e..5b78628 100644 --- a/hooks/hook-xml.dom.ext.reader.py +++ b/hooks/hook-xml.dom.ext.reader.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + attrs = [('ReleaseNode',0), ('StrStream',0), ('BaseUriResolver',0), diff --git a/hooks/hook-xml.dom.html.HTMLDocument.py b/hooks/hook-xml.dom.html.HTMLDocument.py index fca2b3c..2db2f93 100644 --- a/hooks/hook-xml.dom.html.HTMLDocument.py +++ b/hooks/hook-xml.dom.html.HTMLDocument.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + #xml.dom.html.HTMLDocument hiddenimports = ['xml.dom.html.HTMLAnchorElement', 'xml.dom.html.HTMLAppletElement', diff --git a/hooks/hook-xml.dom.html.py b/hooks/hook-xml.dom.html.py index 79bb880..fc75593 100644 --- a/hooks/hook-xml.dom.html.py +++ b/hooks/hook-xml.dom.html.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + attrs = [('HTML_4_STRICT_INLINE',0), ('HTML_4_TRANSITIONAL_INLINE',0), ('HTML_FORBIDDEN_END',0), @@ -15,4 +32,4 @@ attrs = [('HTML_4_STRICT_INLINE',0), ('SECURE_HTML_ELEMS',0), ] - + diff --git a/hooks/hook-xml.dom.py b/hooks/hook-xml.dom.py index 74e85a1..17aae02 100644 --- a/hooks/hook-xml.dom.py +++ b/hooks/hook-xml.dom.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + import string attrs = [('Node', 0), ('INDEX_SIZE_ERR', 1), @@ -35,7 +52,7 @@ attrs = [('Node', 0), ('registerDOMImplementation', 0), ] -def hook(mod): +def hook(mod): if string.find(mod.__file__, '_xmlplus') > -1: mod.UNSPECIFIED_EVENT_TYPE_ERR = 0 mod.FT_EXCEPTION_BASE = 1000 diff --git a/hooks/hook-xml.py b/hooks/hook-xml.py index 5c0e032..aecc678 100644 --- a/hooks/hook-xml.py +++ b/hooks/hook-xml.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + hiddenimports = ['xml.sax.xmlreader','xml.sax.expatreader'] def hook(mod): diff --git a/hooks/hook-xml.sax.py b/hooks/hook-xml.sax.py index c1bf38b..b06006f 100644 --- a/hooks/hook-xml.sax.py +++ b/hooks/hook-xml.sax.py @@ -1,12 +1,29 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + attrs = [('InputSource', 0), ('ContentHandler', 0), ('ErrorHandler', 0), ('SAXException', 0), - ('SAXNotRecognizedException', 0), + ('SAXNotRecognizedException', 0), ('SAXParseException', 0), - ('SAXNotSupportedException', 0), + ('SAXNotSupportedException', 0), ('SAXReaderNotAvailable', 0), ('parse', 0), ('parseString', 0), ('make_parser', 0), - ] \ No newline at end of file + ] diff --git a/hooks/hook-xml.sax.saxexts.py b/hooks/hook-xml.sax.saxexts.py index ed0b094..82a82aa 100644 --- a/hooks/hook-xml.sax.saxexts.py +++ b/hooks/hook-xml.sax.saxexts.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + #xml.sax.saxexts hiddenimports = ["xml.sax.drivers2.drv_pyexpat", "xml.sax.drivers.drv_xmltok", diff --git a/icon.py b/icon.py index 8735037..f4b8ff1 100644 --- a/icon.py +++ b/icon.py @@ -1,3 +1,21 @@ +#! /usr/bin/env python +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + # This code is courtesy of Thomas Heller, who # has kindly donated it to this project. RT_ICON = 3 diff --git a/iu.py b/iu.py index 599dd7f..396fabb 100644 --- a/iu.py +++ b/iu.py @@ -1,3 +1,28 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# In addition to the permissions in the GNU General Public License, the +# authors give you unlimited permission to link or embed the compiled +# version of this file into combinations with other programs, and to +# distribute those combinations without any restriction coming from the +# use of this file. (The General Public License restrictions do apply in +# other respects; for example, they cover modification of the file, and +# distribution when not linked into a combine executable.) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + # **NOTE** This module is used during bootstrap. Import *ONLY* builtin modules. import sys import imp diff --git a/mf.py b/mf.py index f530390..21c97dc 100644 --- a/mf.py +++ b/mf.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys, string, os, imp, marshal #=======================Owners==========================# diff --git a/source/common/launch.c b/source/common/launch.c index 8f38fba..c101e00 100644 --- a/source/common/launch.c +++ b/source/common/launch.c @@ -1,10 +1,30 @@ /* - * Launch a python module from an archive. + * Launch a python module from an archive. + * Copyright (C) 2005, Giovanni Bajo + * Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. * - * This code re-engineered from Gordon McMillan's uplaunch.cpp by Alan Green - * Changes adopted / adapted by Gordon McMillan. + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * In addition to the permissions in the GNU General Public License, the + * authors give you unlimited permission to link or embed the compiled + * version of this file into combinations with other programs, and to + * distribute those combinations without any restriction coming from the + * use of this file. (The General Public License restrictions do apply in + * other respects; for example, they cover modification of the file, and + * distribution when not linked into a combine executable.) + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ - #include #ifdef WIN32 #include diff --git a/source/common/launch.h b/source/common/launch.h index 8e8ef74..fa1d918 100644 --- a/source/common/launch.h +++ b/source/common/launch.h @@ -1,3 +1,30 @@ +/* + * Launch a python module from an archive. + * Copyright (C) 2005, Giovanni Bajo + * Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * In addition to the permissions in the GNU General Public License, the + * authors give you unlimited permission to link or embed the compiled + * version of this file into combinations with other programs, and to + * distribute those combinations without any restriction coming from the + * use of this file. (The General Public License restrictions do apply in + * other respects; for example, they cover modification of the file, and + * distribution when not linked into a combine executable.) + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ #ifndef LAUNCH_H #define LAUNCH_H #include diff --git a/source/linux/Make.py b/source/linux/Make.py index fb92a9c..6e84ec5 100644 --- a/source/linux/Make.py +++ b/source/linux/Make.py @@ -1,4 +1,20 @@ #! /usr/bin/env python +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ Make.py @@ -88,11 +104,11 @@ def main(): configf = open('../../config.dat', 'w') pprint.pprint(config, configf) configf.close() - + targets = [None, None] targets[0] = os.path.join('../../support', 'run') targets[1] = os.path.join('../../support', 'run_d') - + includes = ['-I../common', '-I' + incldir, '-I' + config_h_dir] have_warnings = 0 diff --git a/source/linux/bkfile.py b/source/linux/bkfile.py index 760a575..07923e1 100644 --- a/source/linux/bkfile.py +++ b/source/linux/bkfile.py @@ -1,3 +1,20 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + _orig_open = open class _BkFile: @@ -35,11 +52,11 @@ class _BkFile: self.__file.close() if self.__backup is None: return - try: - from cmp import do_cmp - except: - from filecmp import cmp - do_cmp = cmp + try: + from cmp import do_cmp + except: + from filecmp import cmp + do_cmp = cmp # don't use cmp.cmp because of NFS bugs :-( and # anyway, the stat mtime values differ so do_cmp will # most likely be called anyway diff --git a/source/linux/main.c b/source/linux/main.c index 14b83ff..a9f9532 100644 --- a/source/linux/main.c +++ b/source/linux/main.c @@ -1,3 +1,30 @@ +/* + * Bootloader for a packed executable. + * Copyright (C) 2005, Giovanni Bajo + * Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * In addition to the permissions in the GNU General Public License, the + * authors give you unlimited permission to link or embed the compiled + * version of this file into combinations with other programs, and to + * distribute those combinations without any restriction coming from the + * use of this file. (The General Public License restrictions do apply in + * other respects; for example, they cover modification of the file, and + * distribution when not linked into a combine executable.) + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ #include "launch.h" #ifdef FREEZE_EXCEPTIONS diff --git a/source/linux/makemakefile.py b/source/linux/makemakefile.py index c421f14..721df4a 100644 --- a/source/linux/makemakefile.py +++ b/source/linux/makemakefile.py @@ -1,4 +1,20 @@ # Write the actual Makefile. +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import os import string @@ -26,7 +42,7 @@ def writerules(outfp, files, suffix, dflag, target): deps.append(dest) outfp.write("\n%s: %s\n" % (target, string.join(deps))) - outfp.write("\t$(CC) %s -o %s $(LDLAST)\n" % + outfp.write("\t$(CC) %s -o %s $(LDLAST)\n" % (string.join(files), target)) diff --git a/source/linux/parsesetup.py b/source/linux/parsesetup.py index f509f72..c04eb67 100644 --- a/source/linux/parsesetup.py +++ b/source/linux/parsesetup.py @@ -1,4 +1,20 @@ # Parse Makefiles and Python Setup(.in) files. +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import re import string diff --git a/source/windows/dllmain.c b/source/windows/dllmain.c index 15e5705..baea64a 100644 --- a/source/windows/dllmain.c +++ b/source/windows/dllmain.c @@ -1,3 +1,30 @@ +/* + * Bootloader for a DLL COM server. + * Copyright (C) 2005, Giovanni Bajo + * Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * In addition to the permissions in the GNU General Public License, the + * authors give you unlimited permission to link or embed the compiled + * version of this file into combinations with other programs, and to + * distribute those combinations without any restriction coming from the + * use of this file. (The General Public License restrictions do apply in + * other respects; for example, they cover modification of the file, and + * distribution when not linked into a combine executable.) + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ #include "launch.h" #include #include diff --git a/source/windows/resource.h b/source/windows/resource.h index 597f827..e9f2d20 100644 --- a/source/windows/resource.h +++ b/source/windows/resource.h @@ -1,3 +1,30 @@ +/* + * Resource file for bootloader. + * Copyright (C) 2005, Giovanni Bajo + * Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * In addition to the permissions in the GNU General Public License, the + * authors give you unlimited permission to link or embed the compiled + * version of this file into combinations with other programs, and to + * distribute those combinations without any restriction coming from the + * use of this file. (The General Public License restrictions do apply in + * other respects; for example, they cover modification of the file, and + * distribution when not linked into a combine executable.) + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by launchw.rc diff --git a/source/windows/winmain.c b/source/windows/winmain.c index 00db9cf..6aaa673 100644 --- a/source/windows/winmain.c +++ b/source/windows/winmain.c @@ -1,3 +1,30 @@ +/* + * Bootloader for a packed executable. + * Copyright (C) 2005, Giovanni Bajo + * Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * In addition to the permissions in the GNU General Public License, the + * authors give you unlimited permission to link or embed the compiled + * version of this file into combinations with other programs, and to + * distribute those combinations without any restriction coming from the + * use of this file. (The General Public License restrictions do apply in + * other respects; for example, they cover modification of the file, and + * distribution when not linked into a combine executable.) + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ #include "launch.h" #include #include diff --git a/support/_mountzlib.py b/support/_mountzlib.py index 5a3e7bf..360ae6c 100644 --- a/support/_mountzlib.py +++ b/support/_mountzlib.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import archive, iu, sys iu._globalownertypes.insert(0, archive.PYZOwner) sys.importManager = iu.ImportManager() diff --git a/support/removeTK.py b/support/removeTK.py index a461516..134c56a 100644 --- a/support/removeTK.py +++ b/support/removeTK.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import sys, os def empty(dir): diff --git a/support/rthooks/versioneddll.py b/support/rthooks/versioneddll.py index 31cfcae..e0e69b3 100644 --- a/support/rthooks/versioneddll.py +++ b/support/rthooks/versioneddll.py @@ -1,3 +1,28 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# In addition to the permissions in the GNU General Public License, the +# authors give you unlimited permission to link or embed the compiled +# version of this file into combinations with other programs, and to +# distribute those combinations without any restriction coming from the +# use of this file. (The General Public License restrictions do apply in +# other respects; for example, they cover modification of the file, and +# distribution when not linked into a combine executable.) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + import os, sys, iu, imp class Win32ImportDirector(iu.ImportDirector): def __init__(self): @@ -16,4 +41,4 @@ class Win32ImportDirector(iu.ImportDirector): mod = imp.load_module(nm, fp, fnm, ('.dll', 'rb', imp.C_EXTENSION)) mod.__file__ = fnm return mod -sys.importManager.metapath.insert(1, Win32ImportDirector()) \ No newline at end of file +sys.importManager.metapath.insert(1, Win32ImportDirector()) diff --git a/support/rthooks/win32comgenpy.py b/support/rthooks/win32comgenpy.py index a9913a3..0ca03da 100644 --- a/support/rthooks/win32comgenpy.py +++ b/support/rthooks/win32comgenpy.py @@ -1,3 +1,28 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# In addition to the permissions in the GNU General Public License, the +# authors give you unlimited permission to link or embed the compiled +# version of this file into combinations with other programs, and to +# distribute those combinations without any restriction coming from the +# use of this file. (The General Public License restrictions do apply in +# other respects; for example, they cover modification of the file, and +# distribution when not linked into a combine executable.) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + import os, sys supportdir = os.path.join(sys.path[0], 'support') genpydir = os.path.join(supportdir, 'gen_py') diff --git a/support/unpackTK.py b/support/unpackTK.py index 0d0600b..57c0606 100644 --- a/support/unpackTK.py +++ b/support/unpackTK.py @@ -1,3 +1,19 @@ +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import carchive import sys import os diff --git a/versionInfo.py b/versionInfo.py index 635526c..5f3d659 100644 --- a/versionInfo.py +++ b/versionInfo.py @@ -1,7 +1,19 @@ -# copyright 2001 McMillan Enterprises, Inc. -# license: use as you please. No warranty. -# Gordon McMillan gmcm@hypernet.com +# Copyright (C) 2005, Giovanni Bajo +# Based on previous work under copyright (c) 2001, 2002 McMillan Enterprises, Inc. # +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA import win32api import struct import pywintypes