mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-26 07:49:48 -05:00
make itsdangerous packaged on any wheezy, not just tails
This commit is contained in:
parent
826d643ea0
commit
5a496c1864
13
setup.py
13
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',
|
||||
|
Loading…
Reference in New Issue
Block a user