mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 14:48:55 +08:00
18934c3a45
* Make photon client into a C extension. * Fix formatting. * Rename extension from PhotonClient to Photon. * Update common submodule. * Fix Makefile to compile with fPIC. * Update common submodule. * Compile C extension against common. * Fix formatting. * Remove unnecessary include. * Update common submodule and rename Photon -> PhotonClient. * Drop global interpretor lock during get_task.
15 lines
699 B
Python
15 lines
699 B
Python
from setuptools import setup, find_packages, Extension
|
|
|
|
photon_module = Extension("photon",
|
|
sources=["photon_extension.c", "../../common/lib/python/common_extension.c"],
|
|
include_dirs=["../../", "../../common/",
|
|
"../../common/thirdparty/",
|
|
"../../common/lib/python"],
|
|
extra_objects=["../../build/photon_client.a", "../../common/build/libcommon.a"],
|
|
extra_compile_args=["--std=c99", "-Werror"])
|
|
|
|
setup(name="Photon",
|
|
version="0.1",
|
|
description="Photon library for Ray",
|
|
ext_modules=[photon_module])
|