diff options
author | Dan O'Reilly <oreilldf@gmail.com> | 2015-08-14 22:54:53 -0400 |
---|---|---|
committer | Dan O'Reilly <oreilldf@gmail.com> | 2015-08-14 22:54:53 -0400 |
commit | 2621c8aefbfefd517a3facc6dc0e0dc45ae5eb87 (patch) | |
tree | a12a81028a9ac3b4aab2cfbbfc495e1da82c5669 /python/setup.py | |
parent | d06adbd4a48c83aa8e9085e988020ad3bff43211 (diff) | |
download | protobuf-2621c8aefbfefd517a3facc6dc0e0dc45ae5eb87.tar.gz protobuf-2621c8aefbfefd517a3facc6dc0e0dc45ae5eb87.tar.bz2 protobuf-2621c8aefbfefd517a3facc6dc0e0dc45ae5eb87.zip |
Get Python 2.6 working.
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
Diffstat (limited to 'python/setup.py')
-rwxr-xr-x | python/setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/setup.py b/python/setup.py index bb8a7d05..79e23698 100755 --- a/python/setup.py +++ b/python/setup.py @@ -158,6 +158,11 @@ if __name__ == '__main__': ) os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'cpp' + install_requires = ['six', 'setuptools'] + if sys.version_info <= (2,7): + install_requires.append('ordereddict') + install_requires.append('unittest2') + setup( name='protobuf', version=GetVersion(), @@ -187,6 +192,6 @@ if __name__ == '__main__': 'clean': clean, 'build_py': build_py, }, - install_requires=['setuptools', 'six'], + install_requires=install_requires, ext_modules=ext_module_list, ) |