# Path: lib/util.py
# def print_error(*args):
#     if not is_verbose: return
#     print_stderr(*args)
# 
# Path: lib/version.py
# ELECTRUM_VERSION = '2.2.1'    # version of the client package


from setuptools import setup
from lib.util import print_error
from lib.version import ELECTRUM_VERSION as version
    from plistlib import Plist
from distutils import dir_util
import os
import re
import shutil
import sys
if sys.platform == 'darwin':
    plist = Plist.fromFile('Info.plist')
    plist.update(dict(CFBundleIconFile='electrum.icns'))

    shutil.copy(mainscript, mainscript + '.py')
    mainscript += '.py'
    extra_options = dict(
        setup_requires=['py2app'],
        app=[mainscript],
        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,
                                 resources=["data", "icons"])),
    )
elif sys.platform == 'win32':
    extra_options = dict(
        setup_requires=['py2exe'],
        app=[mainscript],
    )
else:
    extra_options = dict(
        # Normally unix-like platforms will use "setup.py install"
        # and install the main script as such
        scripts=[mainscript],
    )

setup(
    name=name,

# Path: lib/util.py
# def print_error(*args):
#     if not is_verbose: return
#     print_stderr(*args)
# 
# Path: lib/version.py
# ELECTRUM_VERSION = '2.2.1'    # version of the client package


# Path: setup-release.py
from setuptools import setup
from lib.util import print_error
from lib.version import ELECTRUM_VERSION as version
    from plistlib import Plist
from distutils import dir_util
import os
import re
import shutil
import sys

if sys.platform == 'darwin':
    plist = Plist.fromFile('Info.plist')
    plist.update(dict(CFBundleIconFile='electrum.icns'))

    shutil.copy(mainscript, mainscript + '.py')
    mainscript += '.py'
    extra_options = dict(
        setup_requires=['py2app'],
        app=[mainscript],
        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,
                                 resources=["data", "icons"])),
    )
elif sys.platform == 'win32':
    extra_options = dict(
        setup_requires=['py2exe'],
        app=[mainscript],
    )
else:
    extra_options = dict(
        # Normally unix-like platforms will use "setup.py install"
        # and install the main script as such
        scripts=[mainscript],
    )

setup(
    name=name,

    version=version,