mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 05:17:38 +08:00
7be1a93d64
* 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.
13 lines
502 B
Python
13 lines
502 B
Python
from setuptools import setup, find_packages, Extension
|
|
|
|
common_module = Extension("common",
|
|
sources=["common_module.c", "common_extension.c"],
|
|
include_dirs=["../../", "../../thirdparty"],
|
|
extra_objects=["../../build/libcommon.a"],
|
|
extra_compile_args=["--std=c99", "-Werror"])
|
|
|
|
setup(name="Common",
|
|
version="0.1",
|
|
description="Common library for Ray",
|
|
ext_modules=[common_module])
|