Skip to content

Commit

Permalink
Remove names in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkid committed Jan 20, 2018
1 parent ab6c1e9 commit 58f3c21
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions setup.py
Expand Up @@ -42,7 +42,7 @@ def glob_recursive(directory, file_pattern="*"):
""" Like glob, but recurses sub-dirs.
:param directory: directory from which to start searching
:param file_pattern: (default '*')
optional name pattern for desired files. Used to filter files at
optional name pattern for desired files. Used to filter files at
every level; NOT used to filter directories.
:return: list(str) of path to every file found.
"""
Expand All @@ -60,7 +60,7 @@ def to_data_files(target, top, files):
that reproduce the structure of directories inside 'top'.
This lets you move a set of files from any location in your source tree
into any location in the distro.
:param target: str - relative path inside of py2exe distro where files shall go
:param top: str - absolute (or relative to system current) path to remove from each of the paths in 'files'
:param files: list(str) of file paths to process
Expand Down Expand Up @@ -118,7 +118,7 @@ def to_data_files(target, top, files):
else:
from py2exe.resources.VersionInfo import RT_VERSION
from py2exe.resources.VersionInfo import Version as VersionResource
#stump: sometimes py2.6 py2exe thinks parts of pygame are "system" DLLs...
# sometimes py2.6 py2exe thinks parts of pygame are "system" DLLs...
__orig_isSystemDLL = py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
exclude = ['pygame', 'libogg']
Expand All @@ -135,15 +135,15 @@ def isSystemDLL(pathname):
"script": "FoFiX.py",
"icon_resources": [(1, "./win32/fofix.ico")],
"other_resources": [(RT_VERSION, 1, VersionResource(
#stump: the parameter below must consist only of up to four numerical fields separated by dots
# the parameter below must consist only of up to four numerical fields separated by dots
Version.versionNum(),
file_description="Frets on Fire X",
legal_copyright=r"© 2008-2013 FoFiX Team. GNU GPL v2 or later.",
company_name="FoFiX Team",
internal_name="FoFiX.exe",
original_filename="FoFiX.exe",
product_name=Version.PROGRAM_NAME,
#stump: when run from the exe, FoFiX will claim to be "FoFiX v" + product_version
# when run from the exe, FoFiX will claim to be "FoFiX v" + product_version
product_version=Version.version()
).resource_bytes())]
}
Expand All @@ -165,10 +165,10 @@ def isSystemDLL(pathname):
("doc", glob.glob("./doc/*")),
("data", glob.glob("./data/*")),
],
#stump: these arguments interfere with the py2exe version tagging code,
# so only use them for py2app even though they are standard distutils
# arguments. When they are present, py2exe synthesizes its own version
# info resource, superseding the one we specify explicitly above.
# these arguments interfere with the py2exe version tagging code,
# so only use them for py2app even though they are standard distutils
# arguments. When they are present, py2exe synthesizes its own version
# info resource, superseding the one we specify explicitly above.
'version': Version.version(),
'description': "Frets on Fire X",
'name': "FoFiX",
Expand All @@ -193,13 +193,13 @@ def isSystemDLL(pathname):
"OpenGL.arrays.numpymodule",
"OpenGL.arrays.lists",
"OpenGL.arrays.numbers",
"OpenGL.arrays.strings", #stump: needed by shader code
"OpenGL.arrays.strings", # needed by shader code
"OpenGL.arrays.ctypesparameters",
]
if os.name == 'nt':
extraIncludes.append("OpenGL.platform.win32")

#stump: The pyopengl-accelerator format handlers import this
# The pyopengl-accelerator format handlers import this
# module using the Python/C API, so the packaging tools don't
# know that it is needed.
try:
Expand Down Expand Up @@ -229,7 +229,7 @@ def isSystemDLL(pathname):
"PIL.GimpGradientFile",
"PIL.GimpPaletteFile",
"PIL.PaletteFile",
"GimpGradientFile", #stump: we still need the non-PIL names for these
"GimpGradientFile", # we still need the non-PIL names for these
"GimpPaletteFile", # because they get included under these names when
"PaletteFile", # excluded above...
"multiprocessing",
Expand Down

0 comments on commit 58f3c21

Please sign in to comment.