Add --nodeps option to ignore dependencies
This commit is contained in:
parent
42b6c325c7
commit
bae6f257fc
1 changed files with 8 additions and 0 deletions
8
setup.py
8
setup.py
|
|
@ -59,6 +59,7 @@ class Options(object):
|
|||
hildon = False
|
||||
qt = True
|
||||
xdg = True
|
||||
deps = True
|
||||
|
||||
options = Options()
|
||||
|
||||
|
|
@ -95,6 +96,10 @@ elif '--no-xdg' in args:
|
|||
options.xdg = False
|
||||
args.remove('--no-xdg')
|
||||
|
||||
if '--nodeps' in args:
|
||||
options.deps = False
|
||||
args.remove('--nodeps')
|
||||
|
||||
sys.argv = args
|
||||
|
||||
scripts = set(os.listdir('scripts'))
|
||||
|
|
@ -164,6 +169,9 @@ if sys.version_info[0] > 2:
|
|||
if sys.version_info[1] < 6: # older than 2.6
|
||||
requirements.append('simplejson')
|
||||
|
||||
if not options.deps:
|
||||
requirements = []
|
||||
|
||||
setup(
|
||||
name='weboob',
|
||||
version='0.g',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue