Commit fe327427 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

try to detect if zope-2.8 flavour or not by the existense of parts/zope-2.8...

try to detect if zope-2.8 flavour or not by the existense of parts/zope-2.8 directory, instead of sys.verison_info, because the applience test suite uses system python, not a python built by buildout.

# BBB it is adhoc, but all tests in this file will be soon merged into
# each buildout configuration. so please do not care.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41426 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 81dcffd5
......@@ -42,7 +42,14 @@ except NameError:
return True
return False
python_version = '%s.%s' % util.sys.version_info[0:2]
# checking if Zope-2.8 flavour or Zope-2.12 flavour
# BBB it is adhoc, but all tests in this file will be soon merged into
# each buildout configuration.
parts_dir = os.path.join(os.path.abspath(os.curdir), 'parts')
if os.path.exists('%s/zope-2.8' % parts_dir):
python_version = '2.4'
else:
python_version = '2.6'
# List of libraries which are acceptable to be linked in globally
ACCEPTABLE_GLOBAL_LIB_LIST = (
......
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