python: another conflict on API version between pypi & v3 branch

This commit is contained in:
Michael Cohen 2015-01-26 18:03:14 +01:00 committed by Nguyen Anh Quynh
parent aac18de793
commit f051e8fd8e
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,7 @@ from distutils.core import setup
VERSION = '3.0'
SYSTEM = platform.system().lower()
class LazyList(list):
"""A list which re-evaluates each time.
@ -103,6 +104,10 @@ class custom_build_clib(build_clib):
log.info("building '%s' library", lib_name)
# Darwin systems must produce shared libraries with this extension.
if "darwin" in SYSTEM:
self.compiler.shared_lib_extension = ".dynlib"
# First, compile the source code to object files in the
# library directory.
macros = build_info.get('macros')