<commit_before>#!/usr/bin/python

# python setup.py sdist --format=zip,gztar

from distutils.core import setup
from lib.version import ELECTRUM_VERSION as version
import lib.util as util
import os, sys, platform
from lib.util import print_error

if sys.version_info[:3] < (2,6,0):
    print_error("Error: Electrum requires Python version >= 2.6.0...")
    sys.exit(1)
            

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',
                  'electrum.gui',
                  'electrum.gui_qt',
                  'electrum.gui_lite',
                  'electrum.exchange_rate',
                  'electrum.icons_rc',
                  'electrum.mnemonic',
                  'electrum.pyqrnative',
                  'electrum.qrscanner',
                  'electrum.bmp',
                  'electrum.msqr',
                  'electrum.util',
                  'electrum.i18n'],
    description = "Lightweight Bitcoin Wallet",
    author = "thomasv",
    author_email = "<EMAIL>",
    license = "GNU GPLv3",
    url = "http://electrum-desktop.com",
    long_description = """Lightweight Bitcoin Wallet""" 
)

<commit_msg>Packaging history widget<commit_after>#!/usr/bin/python

# python setup.py sdist --format=zip,gztar

from distutils.core import setup
from lib.version import ELECTRUM_VERSION as version
import lib.util as util
import os, sys, platform
from lib.util import print_error

if sys.version_info[:3] < (2,6,0):
    print_error("Error: Electrum requires Python version >= 2.6.0...")
    sys.exit(1)
            

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',
                  'electrum.gui',
                  'electrum.gui_qt',
                  'electrum.gui_lite',
                  'electrum.exchange_rate',
                  'electrum.icons_rc',
                  'electrum.mnemonic',
                  'electrum.pyqrnative',
                  'electrum.qrscanner',
                  'electrum.history_widget',
                  'electrum.bmp',
                  'electrum.msqr',
                  'electrum.util',
                  'electrum.i18n'],
    description = "Lightweight Bitcoin Wallet",
    author = "thomasv",
    author_email = "<EMAIL>",
    license = "GNU GPLv3",
    url = "http://electrum-desktop.com",
    long_description = """Lightweight Bitcoin Wallet""" 
)


{'fraction_non_alphanumeric': 0.1560316721006055, 'fraction_numerical': 0.005123428039124359, 'mean_word_length': 2.2661596958174903, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1383764', 'n_tokens_mistral': 1417, 'n_tokens_neox': 1338, 'n_words': 231}