From 5a496c18648856fd0f26aa345f35df7dff5d48f5 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 19 Aug 2014 00:49:50 +0000 Subject: [PATCH] make itsdangerous packaged on any wheezy, not just tails --- setup.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 2d810617..e10bc972 100644 --- a/setup.py +++ b/setup.py @@ -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',