Fix setup.py
This commit is contained in:
1 parent
a02a9090c1
commit
37c034d6f0
1 file changed
+3
-7
@@ -7,14 +7,10 @@ import re
|
||||
|
||||
info = eval(file('__tryton__.py').read())
|
||||
|
||||
requires = []
|
||||
for dep in info.get('depends', []):
|
||||
match = re.compile(
|
||||
'(ir|res|workflow|webdav)((\s|$|<|>|<=|>=|==|!=).*?$)').match(dep)
|
||||
if match:
|
||||
continue
|
||||
else:
|
||||
dep = 'trytond_' + dep
|
||||
requires.append(dep)
|
||||
if not re.match(r'(ir|res|workflow|webdav)(\W|$)', dep):
|
||||
requires.append('trytond_' + dep)
|
||||
|
||||
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
|
||||
requires.append('trytond >= %s.%s' % (major_version, minor_version))
|
||||
|
||||
Reference in new issue
Block a user