From a7209a1f773a4195839ae02cb98d5e2820422ab7 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 9 Aug 2017 12:38:54 +0200 Subject: [PATCH] python3: update setup-release.py --- setup-release.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/setup-release.py b/setup-release.py index 3f9463349..4cdc887f9 100644 --- a/setup-release.py +++ b/setup-release.py @@ -14,15 +14,14 @@ import re import shutil import sys -from lib.util import print_error from lib.version import ELECTRUM_VERSION as version name = "Electrum" mainscript = 'electrum' -if sys.version_info[:3] < (2, 6, 0): - print_error("Error: " + name + " requires Python version >= 2.6.0...") +if sys.version_info[:3] < (3, 4, 0): + print("Error: " + name + " requires Python version >= 3.4.0...") sys.exit(1) if sys.platform == 'darwin': @@ -37,7 +36,7 @@ if sys.platform == 'darwin': app=[mainscript], options=dict(py2app=dict(argv_emulation=False, includes=['PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtWebKit', 'PyQt4.QtNetwork', 'sip'], - packages=['lib', 'gui', 'plugins', 'packages'], + packages=['lib', 'gui', 'plugins'], iconfile='electrum.icns', plist=plist, resources=["icons"])), @@ -80,13 +79,12 @@ if sys.platform == 'darwin': qt_menu_location = re.sub('\n', '', qt_menu_location) if (len(qt_menu_location) == 0): - print "Sorry couldn't find your qt_menu.nib this probably won't work" + print("Sorry couldn't find your qt_menu.nib this probably won't work") else: - print "Found your qib: " + qt_menu_location + print("Found your qib: " + qt_menu_location) # Need to include a copy of qt_menu.nib shutil.copytree(qt_menu_location, resource + "qt_menu.nib") # Need to touch qt.conf to avoid loading 2 sets of Qt libraries fname = resource + "qt.conf" - with file(fname, 'a'): - os.utime(fname, None) + os.utime(fname, None)