Move common C extension module into a different C file. (#35)

* Move common C extension module into a different C file so that the actual definitions can be more easily included in other C extensions.

* Rename common_extension_module -> common_module.
This commit is contained in:
Robert Nishihara
2016-10-06 19:16:09 -07:00
committed by Philipp Moritz
parent 90a6a99b03
commit 7be1a93d64
4 changed files with 42 additions and 36 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages, Extension
common_module = Extension("common",
sources=["common_extension.c"],
sources=["common_module.c", "common_extension.c"],
include_dirs=["../../", "../../thirdparty"],
extra_objects=["../../build/libcommon.a"],
extra_compile_args=["--std=c99", "-Werror"])