1
0

remove themes, check python3 in setup.py

This commit is contained in:
ThomasV
2015-10-18 12:43:20 +02:00
parent fbda9dac79
commit f8e51e3323
9 changed files with 7 additions and 229 deletions

View File

@@ -8,23 +8,22 @@ import sys
import platform
import imp
version = imp.load_source('version', 'lib/version.py')
if sys.version_info[:3] < (2, 7, 0):
sys.exit("Error: Electrum requires Python version >= 2.7.0...")
if sys.version_info[:3] >= (3, 0, 0):
sys.exit("Error: Electrum requires Python 2")
data_files = []
if platform.system() in [ 'Linux', 'FreeBSD', 'DragonFly']:
if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']:
usr_share = os.path.join(sys.prefix, "share")
data_files += [
(os.path.join(usr_share, 'applications/'), ['electrum.desktop']),
(os.path.join(usr_share, 'pixmaps/'), ['icons/electrum.png'])
]
setup(
name="Electrum",
version=version.ELECTRUM_VERSION,
@@ -48,14 +47,6 @@ setup(
'www/index.html',
'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",
]
},
scripts=['electrum'],