mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-17 23:31:55 +00:00
Flake8 bbfreeze
This commit is contained in:
parent
1c3e14919f
commit
d2a2631a70
1 changed files with 14 additions and 14 deletions
|
@ -6,23 +6,22 @@ import sys
|
|||
|
||||
import bbfreeze
|
||||
import gtk
|
||||
import icon
|
||||
import win32api
|
||||
from win32verstamp import stamp
|
||||
|
||||
import deluge.common
|
||||
|
||||
|
||||
class VersionInfo(object):
|
||||
def __init__(self, version, internalName = None, originalFileName = None,
|
||||
comments = None, company = None, description = None,
|
||||
copyright = None, trademarks = None, product = None, dll = False,
|
||||
debug = False, verbose = True):
|
||||
def __init__(self, version, internalname=None, originalfilename=None,
|
||||
comments=None, company=None, description=None,
|
||||
copyright=None, trademarks=None, product=None, dll=False,
|
||||
debug=False, verbose=True):
|
||||
parts = version.split(".")
|
||||
while len(parts) < 4:
|
||||
parts.append("0")
|
||||
self.version = ".".join(parts)
|
||||
self.internal_name = internalName
|
||||
self.original_filename = originalFileName
|
||||
self.internal_name = internalname
|
||||
self.original_filename = originalfilename
|
||||
self.comments = comments
|
||||
self.company = company
|
||||
self.description = description
|
||||
|
@ -52,9 +51,10 @@ excludes = ("numpy", "OpenGL", "psyco", "win32ui")
|
|||
|
||||
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):
|
||||
# Override bbfreeze function so that it includes all gtk libraries
|
||||
# in the installer so users don't require a separate GTK+ installation.
|
||||
return True
|
||||
bbfreeze.recipes.recipe_gtk_and_friends = recipe_gtk_override
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue