mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-18 07:41:55 +00:00
Flake8 bbfreeze
This commit is contained in:
parent
1c3e14919f
commit
d2a2631a70
1 changed files with 14 additions and 14 deletions
|
@ -6,14 +6,13 @@ 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):
|
||||||
|
@ -21,8 +20,8 @@ class VersionInfo(object):
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue