Exemple #1
0
data_files = []
if (len(sys.argv) > 1 and
    (sys.argv[1] == "sdist")) or (platform.system() != 'Windows'
                                  and platform.system() != 'Darwin'):
    print "Including all files"
    data_files += [('/usr/share/applications/', ['electrum.desktop']),
                   ('/usr/share/app-install/icons/', ['electrum.png'])]
    if not os.path.exists('locale'):
        os.mkdir('locale')
    for lang in os.listdir('locale'):
        if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo' % lang):
            data_files.append(('/usr/share/locale/%s/LC_MESSAGES' % lang,
                               ['locale/%s/LC_MESSAGES/electrum.mo' % lang]))

data_files += [
    (util.appdata_dir(), ["data/noface.svg", "data/README"]),
    (os.path.join(util.appdata_dir(), "cleanlook"),
     ["data/cleanlook/name.cfg", "data/cleanlook/style.css"]),
    (os.path.join(util.appdata_dir(), "dark"),
     ["data/dark/background.png", "data/dark/name.cfg", "data/dark/style.css"])
]

setup(name="Electrum",
      version=version,
      install_requires=['slowaes', 'ecdsa'],
      package_dir={'electrum': 'lib'},
      scripts=['electrum'],
      data_files=data_files,
      py_modules=[
          'electrum.version', 'electrum.wallet', 'electrum.interface',
          'electrum.gui', 'electrum.gui_qt', 'electrum.gui_lite',
Exemple #2
0
data_files = []

if platform.system() != 'Windows' and platform.system() != 'Darwin':
    data_files += [
        ('/usr/share/applications/',['electrum.desktop']),
        ('/usr/share/app-install/icons/',['electrum.png'])
    ]
    if not os.path.exists('locale'):
        os.mkdir('locale')
    for lang in os.listdir('locale'):
        if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo'%lang):
            data_files.append(  ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )

data_files += [
    (util.appdata_dir(), ["data/background.png", "data/style.css"]),
    (os.path.join(util.appdata_dir(), "icons"), [
        "data/icons/confirmed.png",
        "data/icons/unconfirmed.png"
    ])
]

setup(name = "Electrum",
    version = version,
    install_requires = ['slowaes','ecdsa'],
    package_dir = {'electrum': 'lib'},
    scripts= ['electrum'],
    data_files = data_files,
    py_modules = ['electrum.version',
                  'electrum.wallet',
                  'electrum.interface',
Exemple #3
0
data_files = []
if (len(sys.argv) > 1 and (sys.argv[1] == "sdist")) or (platform.system() != 'Windows' and platform.system() != 'Darwin'):
    print "Including all files"
    data_files += [
        ('/usr/share/applications/',['electrum.desktop']),
        ('/usr/share/app-install/icons/',['electrum.png'])
    ]
    if not os.path.exists('locale'):
        os.mkdir('locale')
    for lang in os.listdir('locale'):
        if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo'%lang):
            data_files.append(  ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )

data_files += [
    (util.appdata_dir(), ["data/noface.svg", "data/README"]),
    (os.path.join(util.appdata_dir(), "cleanlook"), [
        "data/cleanlook/name.cfg",
        "data/cleanlook/style.css"
    ]),
    (os.path.join(util.appdata_dir(), "dark"), [
        "data/dark/background.png",
        "data/dark/name.cfg",
        "data/dark/style.css"
    ])
]

setup(name = "Electrum",
    version = version,
    install_requires = ['slowaes','ecdsa'],
    package_dir = {'electrum': 'lib'},
Exemple #4
0
data_files = []

if platform.system() != 'Windows' and platform.system() != 'Darwin':
    data_files += [('/usr/share/applications/',
                    ['electrum-bitcoin.desktop', 'electrum-litecoin.desktop']),
                   ('/usr/share/app-install/icons/',
                    ['electrum-bitcoin.png', 'electrum-litecoin.png'])]
    if not os.path.exists('locale'):
        os.mkdir('locale')
    for lang in os.listdir('locale'):
        if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo' % lang):
            data_files.append(('/usr/share/locale/%s/LC_MESSAGES' % lang,
                               ['locale/%s/LC_MESSAGES/electrum.mo' % lang]))

data_files += [
    (util.appdata_dir(), ["data/background.png", "data/style.css"]),
    (
        os.path.join(util.appdata_dir(), "icons"),
        [
            #        "data/icons/accounts.png",
            "data/icons/confirmed.png",
            #        "data/icons/expand.png",
            #        "data/icons/interact.png",
            "data/icons/unconfirmed.png"
        ])
]

setup(name="Electrum",
      version=version,
      install_requires=['slowaes', 'ecdsa'],
      package_dir={'electrum': 'lib'},