Files
pallectrum/setup.py

72 lines
1.8 KiB
Python
Raw Normal View History

2011-11-16 13:53:18 +03:00
#!/usr/bin/python
2011-11-29 10:32:56 +01:00
# python setup.py sdist --format=zip,gztar
2011-11-16 13:53:18 +03:00
2013-10-07 13:26:10 +02:00
from setuptools import setup
2013-11-12 19:33:47 -08:00
import os
import sys
import platform
import imp
2012-10-20 17:01:11 +02:00
version = imp.load_source('version', 'lib/version.py')
2014-11-07 17:25:54 +01:00
if sys.version_info[:3] < (2, 7, 0):
sys.exit("Error: Electrum requires Python version >= 2.7.0...")
2012-05-18 19:59:47 +02:00
2015-02-18 17:13:41 +01:00
data_files = []
if platform.system() == 'Linux' or platform.system() == 'FreeBSD':
2015-02-18 17:13:41 +01:00
usr_share = os.path.join(sys.prefix, "share")
2012-06-10 15:43:10 +02:00
data_files += [
2013-11-12 19:33:47 -08:00
(os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
2015-03-29 18:07:03 +02:00
(os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])
]
2014-09-13 09:58:11 +02:00
2012-11-06 09:01:30 +01:00
2013-11-12 19:33:47 -08:00
setup(
name="Electrum",
version=version.ELECTRUM_VERSION,
install_requires=[
'slowaes>=0.1a1',
'ecdsa>=0.9',
'pbkdf2',
'requests',
'pyasn1-modules',
'pyasn1',
'qrcode',
'protobuf',
2015-02-17 18:30:04 +01:00
'tlslite',
'dnspython',
],
2013-11-12 19:33:47 -08:00
package_dir={
'electrum': 'lib',
'electrum_gui': 'gui',
'electrum_plugins': 'plugins',
},
2015-02-18 17:13:41 +01:00
packages=['electrum','electrum_gui','electrum_gui.qt','electrum_plugins'],
package_data={
'electrum': [
'wordlist/*.txt',
'locale/*/LC_MESSAGES/electrum.mo',
],
'electrum_gui': [
"qt/themes/cleanlook/name.cfg",
"qt/themes/cleanlook/style.css",
"qt/themes/sahara/name.cfg",
"qt/themes/sahara/style.css",
"qt/themes/dark/name.cfg",
"qt/themes/dark/style.css",
]
},
2013-11-12 19:33:47 -08:00
scripts=['electrum'],
data_files=data_files,
description="Lightweight Bitcoin Wallet",
2014-06-07 13:30:40 +02:00
author="Thomas Voegtlin",
2015-02-17 17:24:40 +01:00
author_email="thomasv@electrum.org",
2013-11-12 19:33:47 -08:00
license="GNU GPLv3",
2014-06-07 13:30:40 +02:00
url="https://electrum.org",
2013-11-12 19:33:47 -08:00
long_description="""Lightweight Bitcoin Wallet"""
2012-05-10 14:38:49 +02:00
)