aboutsummaryrefslogtreecommitdiffstats
path: root/tests/shlib_test/hello.pyx
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/hello.pyx
parentb28da64e5120e9c2fd5b964fb46f7f2ded2eb5a3 (diff)
downloadexternal_python_setuptools-bda5b372b2b631048897ec5ecee6eee98b3b06a9.tar.gz
external_python_setuptools-bda5b372b2b631048897ec5ecee6eee98b3b06a9.tar.bz2
external_python_setuptools-bda5b372b2b631048897ec5ecee6eee98b3b06a9.zip
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/hello.pyx')
-rwxr-xr-xtests/shlib_test/hello.pyx4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/shlib_test/hello.pyx b/tests/shlib_test/hello.pyx
new file mode 100755
index 00000000..58ce6919
--- /dev/null
+++ b/tests/shlib_test/hello.pyx
@@ -0,0 +1,4 @@
+cdef extern char *get_hello_msg()
+
+def hello():
+ return get_hello_msg()