1 2 3 4 5 6 7 8 9 10
from setuptools import setup, Extension, Library setup( name="shlib_test", ext_modules = [ Library("hellolib", ["hellolib.c"]), Extension("hello", ["hello.pyx"], libraries=["hellolib"]) ], test_suite="test_hello.HelloWorldTest", )