Commit 41888571 authored by Łukasz Nowak's avatar Łukasz Nowak

toolbox do not require (yet) argparse.

parent 09271f30
...@@ -10,14 +10,6 @@ long_description = open("README.txt").read() + "\n" + \ ...@@ -10,14 +10,6 @@ long_description = open("README.txt").read() + "\n" + \
for f in sorted(glob.glob(os.path.join('slapos', 'README.*.txt'))): for f in sorted(glob.glob(os.path.join('slapos', 'README.*.txt'))):
long_description += '\n' + open(f).read() + '\n' long_description += '\n' + open(f).read() + '\n'
additional_install_requires = []
# Even if argparse is available in python2.7, some python2.7 installations
# do not have it, so checking python version is dangerous
try:
import argparse
except ImportError:
additional_install_requires.append('argparse')
setup(name=name, setup(name=name,
version=version, version=version,
description="SlapOS toolbox.", description="SlapOS toolbox.",
...@@ -39,7 +31,7 @@ setup(name=name, ...@@ -39,7 +31,7 @@ setup(name=name,
'setuptools', # namespaces 'setuptools', # namespaces
'slapos.core', # as it provides library for slap 'slapos.core', # as it provides library for slap
'xml_marshaller', # needed to dump information 'xml_marshaller', # needed to dump information
] + additional_install_requires, ],
zip_safe=False, # proxy depends on Flask, which has issues with zip_safe=False, # proxy depends on Flask, which has issues with
# accessing templates # accessing templates
entry_points={ entry_points={
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment