Skip to content

Commit

Permalink
Clean: Unify license header in PyInstaller source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
matysek committed Jan 29, 2013
1 parent c707d8a commit 9bd99c7
Show file tree
Hide file tree
Showing 50 changed files with 438 additions and 726 deletions.
22 changes: 7 additions & 15 deletions PyInstaller/__init__.py
Original file line number Original file line Diff line number Diff line change
@@ -1,20 +1,12 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2011 by Hartmut Goebel # Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
# #
# This program is free software; you can redistribute it and/or modify # The full license is in the file COPYING.txt, distributed with this software.
# 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


__all__ = ('HOMEPATH', 'CONFIGDIR', 'PLATFORM', __all__ = ('HOMEPATH', 'CONFIGDIR', 'PLATFORM',
'VERSION', 'get_version', 'VERSION', 'get_version',
Expand Down
26 changes: 9 additions & 17 deletions PyInstaller/bindepend.py
Original file line number Original file line Diff line number Diff line change
@@ -1,23 +1,15 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # for distributing bootloader.
# #
# This program is free software; you can redistribute it and/or # The full license is in the file COPYING.txt, distributed with this software.
# 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



# Find external dependencies of binary libraries. """
Find external dependencies of binary libraries.
"""




import os import os
Expand Down
25 changes: 9 additions & 16 deletions PyInstaller/build.py
Original file line number Original file line Diff line number Diff line change
@@ -1,23 +1,16 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# Based on previous work under copyright (c) 1999, 2002 McMillan Enterprises, Inc. # for distributing bootloader.
# #
# This program is free software; you can redistribute it and/or # The full license is in the file COPYING.txt, distributed with this software.
# 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




# Build packages using spec files. """
Build packages using spec files.
"""




import glob import glob
Expand Down
30 changes: 13 additions & 17 deletions PyInstaller/compat.py
Original file line number Original file line Diff line number Diff line change
@@ -1,22 +1,18 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Various classes and functions to provide some backwards-compatibility # Distributed under the terms of the GNU General Public License with exception
# with previous versions of Python from 2.3 onward. # for distributing bootloader.
# #
# Copyright (C) 2011, Martin Zibricky # The full license is in the file COPYING.txt, distributed with this software.
# #-----------------------------------------------------------------------------
# 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. Various classes and functions to provide some backwards-compatibility
# with previous versions of Python from 2.3 onward.
# 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 dircache # Module removed in Python 3 import dircache # Module removed in Python 3
import os import os
Expand Down
25 changes: 9 additions & 16 deletions PyInstaller/configure.py
Original file line number Original file line Diff line number Diff line change
@@ -1,23 +1,16 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # for distributing bootloader.
# #
# This program is free software; you can redistribute it and/or # The full license is in the file COPYING.txt, distributed with this software.
# 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




# Configure PyInstaller for the current Python installation. """
Configure PyInstaller for the current Python installation.
"""




import os import os
Expand Down
30 changes: 9 additions & 21 deletions PyInstaller/depend/dylib.py
Original file line number Original file line Diff line number Diff line change
@@ -1,28 +1,16 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005-2011, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # for distributing bootloader.
# #
# This program is free software; you can redistribute it and/or # The full license is in the file COPYING.txt, distributed with this software.
# 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

# Note also that you should check the results to make sure that the
# dlls are redistributable. I've listed most of the common MS dlls
# under "excludes" below; add to this list as necessary (or use the
# "excludes" option in the INSTALL section of the config file).




# Manipulating with dynamic libraries. """
Manipulating with dynamic libraries.
"""




__all__ = ['exclude_list', 'include_list', 'include_library'] __all__ = ['exclude_list', 'include_list', 'include_library']
Expand Down
40 changes: 16 additions & 24 deletions PyInstaller/depend/impdirector.py
Original file line number Original file line Diff line number Diff line change
@@ -1,29 +1,21 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
# #
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # The full license is in the file COPYING.txt, distributed with this software.
# #-----------------------------------------------------------------------------
# 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. ImportDirectors live on the metapath.
# There's one for builtins and one for sys.path.
# This program is distributed in the hope that it will be useful, Windows gets one for modules gotten from the Registry
# but WITHOUT ANY WARRANTY; without even the implied warranty of There should be one for Frozen modules
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Mac would have them for PY_RESOURCE modules etc.
# GNU General Public License for more details. A generalization of Owner - their concept of "turf" is broader
# """
# 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


# ImportDirectors live on the metapath.
# There's one for builtins and one for sys.path.
# Windows gets one for modules gotten from the Registry
# There should be one for Frozen modules
# Mac would have them for PY_RESOURCE modules etc.
# A generalization of Owner - their concept of "turf" is broader




import os import os
Expand Down
23 changes: 7 additions & 16 deletions PyInstaller/depend/imptracker.py
Original file line number Original file line Diff line number Diff line change
@@ -1,21 +1,12 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
# #
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # The full license is in the file COPYING.txt, distributed with this software.
# #-----------------------------------------------------------------------------
# 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 sys
import os import os
Expand Down
28 changes: 10 additions & 18 deletions PyInstaller/depend/modules.py
Original file line number Original file line Diff line number Diff line change
@@ -1,25 +1,17 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
# #
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # The full license is in the file COPYING.txt, distributed with this software.
# #-----------------------------------------------------------------------------
# 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




# All we're doing here is tracking, not importing """
# If we were importing, these would be hooked to the real module objects All we're doing here is tracking, not importing
If we were importing, these would be hooked to the real module objects
"""




import os import os
Expand Down
40 changes: 16 additions & 24 deletions PyInstaller/depend/owner.py
Original file line number Original file line Diff line number Diff line change
@@ -1,29 +1,21 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
# #
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # The full license is in the file COPYING.txt, distributed with this software.
# #-----------------------------------------------------------------------------
# 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. An Owner does imports from a particular piece of turf
# That is, there's an Owner for each thing on sys.path
# This program is distributed in the hope that it will be useful, There are owners for directories and .pyz files.
# but WITHOUT ANY WARRANTY; without even the implied warranty of There could be owners for zip files, or even URLs.
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Note that they replace the string in sys.path,
# GNU General Public License for more details. but str(sys.path[n]) should yield the original string.
# """
# 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


# An Owner does imports from a particular piece of turf
# That is, there's an Owner for each thing on sys.path
# There are owners for directories and .pyz files.
# There could be owners for zip files, or even URLs.
# Note that they replace the string in sys.path,
# but str(sys.path[n]) should yield the original string.




import imp import imp
Expand Down
26 changes: 9 additions & 17 deletions PyInstaller/depend/utils.py
Original file line number Original file line Diff line number Diff line change
@@ -1,24 +1,16 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
# #
# Copyright (C) 2005, Giovanni Bajo # Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
# #
# Based on previous work under copyright (c) 2002 McMillan Enterprises, Inc. # The full license is in the file COPYING.txt, distributed with this software.
# #-----------------------------------------------------------------------------
# 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




# Scan the code object for imports, __all__ and wierd stuff """
Scan the code object for imports, __all__ and wierd stuff
"""




import dis import dis
Expand Down
Loading

0 comments on commit 9bd99c7

Please sign in to comment.