From bda5b372b2b631048897ec5ecee6eee98b3b06a9 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Thu, 5 Jan 2006 23:14:21 +0000 Subject: First draft of shared library build support. See tests/shlib_test for a trivial example. This has only been tested on Windows with a MinGW compiler, and the Mac OS support isn't finished. Testing w/other platforms+compilers would be helpful. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041927 --- tests/shlib_test/setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tests/shlib_test/setup.py (limited to 'tests/shlib_test/setup.py') diff --git a/tests/shlib_test/setup.py b/tests/shlib_test/setup.py new file mode 100755 index 00000000..122de77c --- /dev/null +++ b/tests/shlib_test/setup.py @@ -0,0 +1,10 @@ +from setuptools import setup, Extension, SharedLibrary + +setup( + name="shlib_test", + ext_modules = [ + SharedLibrary("hellolib", ["hellolib.c"]), + Extension("hello", ["hello.pyx"], libraries=["hellolib"]) + ], + test_suite="test_hello.HelloWorldTest", +) -- cgit v1.2.3