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