summaryrefslogtreecommitdiff
path: root/tests/shlib_test/setup.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2006-01-05 23:14:21 +0000
committerPJ Eby <distutils-sig@python.org>2006-01-05 23:14:21 +0000
commitbda5b372b2b631048897ec5ecee6eee98b3b06a9 (patch)
treec32de3922b34596a9a609c8a4589d174be451a9d /tests/shlib_test/setup.py
parentb28da64e5120e9c2fd5b964fb46f7f2ded2eb5a3 (diff)
downloadpython-setuptools-git-bda5b372b2b631048897ec5ecee6eee98b3b06a9.tar.gz
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
Diffstat (limited to 'tests/shlib_test/setup.py')
-rwxr-xr-xtests/shlib_test/setup.py10
1 files changed, 10 insertions, 0 deletions
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",
+)