[Baypiggies] Help with ctypes

Andrew Dalke dalke at dalkescientific.com
Sat Dec 5 23:33:00 CET 2009

On Dec 5, 2009, at 11:18 PM, Glen Jarvis wrote:
> Thanks for the help Jeremy and Michael!
> You need to turn it into a shared library with the -shared and -fPIC
> compiler options. Take a look at:
> http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html.
> Particularly section 3.4
> --mike

You can also use Python's setup.py to build it for you. See for example

where I build a .so file which happens to have no Python code in it.

The avantage being that someone else has worried about getting the right compiler flags.

				dalke at dalkescientific.com

More information about the Baypiggies mailing list