|
@@ -207,7 +207,7 @@ if __name__ == '__main__':
|
|
# C++ projects must now migrate to libc++ and are recommended to set a
|
|
# C++ projects must now migrate to libc++ and are recommended to set a
|
|
# deployment target of macOS 10.9 or later, or iOS 7 or later.
|
|
# deployment target of macOS 10.9 or later, or iOS 7 or later.
|
|
if sys.platform == 'darwin':
|
|
if sys.platform == 'darwin':
|
|
- mac_target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
|
|
|
|
|
|
+ mac_target = str(sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET'))
|
|
if mac_target and (pkg_resources.parse_version(mac_target) <
|
|
if mac_target and (pkg_resources.parse_version(mac_target) <
|
|
pkg_resources.parse_version('10.9.0')):
|
|
pkg_resources.parse_version('10.9.0')):
|
|
os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9'
|
|
os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9'
|
|
@@ -254,7 +254,7 @@ if __name__ == '__main__':
|
|
os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'cpp'
|
|
os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'cpp'
|
|
|
|
|
|
# Keep this list of dependencies in sync with tox.ini.
|
|
# Keep this list of dependencies in sync with tox.ini.
|
|
- install_requires = ['six>=1.9', 'setuptools']
|
|
|
|
|
|
+ install_requires = ['six>=1.9']
|
|
if sys.version_info <= (2,7):
|
|
if sys.version_info <= (2,7):
|
|
install_requires.append('ordereddict')
|
|
install_requires.append('ordereddict')
|
|
install_requires.append('unittest2')
|
|
install_requires.append('unittest2')
|