Minor code cleanup in setup.py

This commit is contained in:
Hartmut Goebel
2009-06-22 12:18:01 +02:00
parent 75e3a1a949
commit db9408eea4
+3 -8
View File
@@ -9,17 +9,12 @@ 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))
requires.append('trytond < %s.%s' % (major_version, str(int(minor_version) + 1)))
requires.append('trytond < %s.%s' % (major_version, int(minor_version) + 1))
setup(name='trytond_account_de_skr03',
version=info.get('version', '0.0.1'),