mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-09 01:55:04 +00:00
Flake8 bbfreeze
This commit is contained in:
parent
1c3e14919f
commit
d2a2631a70
@ -6,23 +6,22 @@ import sys
|
|||||||
|
|
||||||
import bbfreeze
|
import bbfreeze
|
||||||
import gtk
|
import gtk
|
||||||
import icon
|
|
||||||
import win32api
|
|
||||||
from win32verstamp import stamp
|
from win32verstamp import stamp
|
||||||
|
|
||||||
import deluge.common
|
import deluge.common
|
||||||
|
|
||||||
|
|
||||||
class VersionInfo(object):
|
class VersionInfo(object):
|
||||||
def __init__(self, version, internalName = None, originalFileName = None,
|
def __init__(self, version, internalname=None, originalfilename=None,
|
||||||
comments = None, company = None, description = None,
|
comments=None, company=None, description=None,
|
||||||
copyright = None, trademarks = None, product = None, dll = False,
|
copyright=None, trademarks=None, product=None, dll=False,
|
||||||
debug = False, verbose = True):
|
debug=False, verbose=True):
|
||||||
parts = version.split(".")
|
parts = version.split(".")
|
||||||
while len(parts) < 4:
|
while len(parts) < 4:
|
||||||
parts.append("0")
|
parts.append("0")
|
||||||
self.version = ".".join(parts)
|
self.version = ".".join(parts)
|
||||||
self.internal_name = internalName
|
self.internal_name = internalname
|
||||||
self.original_filename = originalFileName
|
self.original_filename = originalfilename
|
||||||
self.comments = comments
|
self.comments = comments
|
||||||
self.company = company
|
self.company = company
|
||||||
self.description = description
|
self.description = description
|
||||||
@ -52,9 +51,10 @@ excludes = ("numpy", "OpenGL", "psyco", "win32ui")
|
|||||||
|
|
||||||
build_dir = "..\\build-win32\\deluge-bbfreeze-" + build_version + "\\"
|
build_dir = "..\\build-win32\\deluge-bbfreeze-" + build_version + "\\"
|
||||||
|
|
||||||
# Need to override bbfreeze function so that it includes all gtk libraries
|
|
||||||
# in the installer so users don't require a separate GTK+ installation.
|
|
||||||
def recipe_gtk_override(mf):
|
def recipe_gtk_override(mf):
|
||||||
|
# Override bbfreeze function so that it includes all gtk libraries
|
||||||
|
# in the installer so users don't require a separate GTK+ installation.
|
||||||
return True
|
return True
|
||||||
bbfreeze.recipes.recipe_gtk_and_friends = recipe_gtk_override
|
bbfreeze.recipes.recipe_gtk_and_friends = recipe_gtk_override
|
||||||
|
|
||||||
@ -96,10 +96,10 @@ for script in script_list:
|
|||||||
script_exe = os.path.splitext(os.path.basename(script))[0] + ".exe"
|
script_exe = os.path.splitext(os.path.basename(script))[0] + ".exe"
|
||||||
if not re.search('[a-zA-Z_-]', build_version):
|
if not re.search('[a-zA-Z_-]', build_version):
|
||||||
versionInfo = VersionInfo(build_version,
|
versionInfo = VersionInfo(build_version,
|
||||||
description="Deluge Bittorrent Client",
|
description="Deluge Bittorrent Client",
|
||||||
company="Deluge Team",
|
company="Deluge Team",
|
||||||
product="Deluge",
|
product="Deluge",
|
||||||
copyright="GPLv3")
|
copyright="GPLv3")
|
||||||
stamp(os.path.join(build_dir, script_exe), versionInfo)
|
stamp(os.path.join(build_dir, script_exe), versionInfo)
|
||||||
|
|
||||||
# Exclude files which are already included in GTK or Windows.
|
# Exclude files which are already included in GTK or Windows.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user