d9598ca55d
Fixes the ScalarMapContainer/MessageMapContainer implementations on Python 3.4, by dynamically allocating their PyTypeObjects using PyType_FromSpecWithBases, instead of statically allocating them. This is necessary because Python 3.4+ disallows statically allocating a class with a dynamically allocated parent. Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
24 lines
710 B
INI
24 lines
710 B
INI
[tox]
|
|
envlist =
|
|
# cpp implementation on py34 is currently broken due to
|
|
# changes introduced by http://bugs.python.org/issue22079.
|
|
py{26,27,33,34}-{cpp,python}
|
|
|
|
[testenv]
|
|
usedevelop=true
|
|
setenv =
|
|
cpp: LD_LIBRARY_PATH={toxinidir}/../src/.libs
|
|
cpp: DYLD_LIBRARY_PATH={toxinidir}/../src/.libs
|
|
cpp: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp
|
|
commands =
|
|
python setup.py -q build_py
|
|
python: python setup.py -q build
|
|
cpp: python setup.py -q build --cpp_implementation
|
|
python: python setup.py -q test -q
|
|
cpp: python setup.py -q test -q --cpp_implementation
|
|
deps =
|
|
# Keep this list of dependencies in sync with setup.py.
|
|
six
|
|
py26: ordereddict
|
|
py26: unittest2
|