"""
-py2app/py2exe build script for Electrum Litecoin
+py2app/py2exe build script for Electrum Novacoin
Usage (Mac OS X):
python setup.py py2app
from lib.version import ELECTRUM_VERSION as version
-name = "Electrum"
-mainscript = 'electrum'
+name = "Electrum-NVC"
+mainscript = 'electrum-nvc'
if sys.version_info[:3] < (2, 6, 0):
print_error("Error: " + name + " requires Python version >= 2.6.0...")
extra_options = dict(
setup_requires=['py2app'],
app=[mainscript],
- options=dict(py2app=dict(argv_emulation=False,
- includes=['PyQt4.QtCore', 'PyQt4.QtGui', 'sip'],
+ options=dict(py2app=dict(argv_emulation=True,
+ includes=['PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtWebKit', 'PyQt4.QtNetwork', 'sip'],
packages=['lib', 'gui', 'plugins'],
iconfile='electrum.icns',
plist=plist,
qt_menu_location = "/opt/local/lib/Resources/qt_menu.nib"
else:
# No dice? Then let's try the brew version
- qt_menu_location = os.popen("find /usr/local/Cellar -name qt_menu.nib | tail -n 1").read()
+ if os.path.exists("/usr/local/Cellar"):
+ qt_menu_location = os.popen("find /usr/local/Cellar -name qt_menu.nib | tail -n 1").read()
+ # no brew, check /opt/local
+ else:
+ qt_menu_location = os.popen("find /opt/local -name qt_menu.nib | tail -n 1").read()
qt_menu_location = re.sub('\n', '', qt_menu_location)
if (len(qt_menu_location) == 0):