make itsdangerous packaged on any wheezy, not just tails

This commit is contained in:
Micah Lee 2014-08-19 00:49:50 +00:00
parent 826d643ea0
commit 5a496c1864

View File

@ -16,16 +16,13 @@ def file_list(path):
files.append(path+'/'+filename)
return files
def get_platform():
p = platform.system()
if p == 'Linux' and platform.uname()[0:2] == ('Linux', 'amnesia'):
p = 'Tails'
return p
packages = ['onionshare', 'onionshare_gui']
try:
import itsdangerous
except ImportError:
packages.append('itsdangerous')
version = open('version').read().strip()
packages = ['onionshare', 'onionshare_gui']
if get_platform() == 'Tails':
packages.append('itsdangerous')
setup(
name='onionshare',