mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-27 00:09:50 -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)
|
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',
|
||||||
|
Loading…
Reference in New Issue
Block a user