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
|
hildon = False
|
||||||
qt = True
|
qt = True
|
||||||
xdg = True
|
xdg = True
|
||||||
|
deps = True
|
||||||
|
|
||||||
options = Options()
|
options = Options()
|
||||||
|
|
||||||
|
|
@ -95,6 +96,10 @@ elif '--no-xdg' in args:
|
||||||
options.xdg = False
|
options.xdg = False
|
||||||
args.remove('--no-xdg')
|
args.remove('--no-xdg')
|
||||||
|
|
||||||
|
if '--nodeps' in args:
|
||||||
|
options.deps = False
|
||||||
|
args.remove('--nodeps')
|
||||||
|
|
||||||
sys.argv = args
|
sys.argv = args
|
||||||
|
|
||||||
scripts = set(os.listdir('scripts'))
|
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
|
if sys.version_info[1] < 6: # older than 2.6
|
||||||
requirements.append('simplejson')
|
requirements.append('simplejson')
|
||||||
|
|
||||||
|
if not options.deps:
|
||||||
|
requirements = []
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='weboob',
|
name='weboob',
|
||||||
version='0.g',
|
version='0.g',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue