
Pearu Peterson wrote:
On Thu, 24 Oct 2002, M.-A. Lemburg wrote:
Mats Wichmann wrote:
Depends on what you mean by "default" :-)
What I'm working on is an automatic system for finding 3rd party libs to link against, e.g. say I have an extension which links against OpenSSL I want the setup.py to automatically find the .so and .h files.
Have you looked at scipy/scipy_distutils/system_info.py? It does exactly this thing for various 3rd party software like atlas,blas,lapack,X11,fftw,etc. and is meant to be easily extendable. See
http://scipy.net/cgi-bin/viewcvsx.cgi/*checkout*/scipy/scipy_distutils/syste...
Interesting. That approach is quite similar to what I'm doing in mxSetup.py for my packages. I've also added a reg. expr. search on the files to work around naming conflicts (e.g. ODBC data drivers tend to all use the same names for names for certain header files), so that I can identify these based on the success of the RE search, e.g. # SAP DB 7.3.0.21 ODBC driver mx_Extension('mx.ODBC.SAPDB.mxODBC', ['mx/ODBC/SAPDB/mxODBC.c', 'mx/ODBC/SAPDB/mxSQLCodes.c'], include_dirs=['mx/ODBC/SAPDB'], define_macros=[('SAPDB', None)], needed_includes=[('sql.h', ['/opt/sapdb/interfaces/odbc/incl'], 'ODBC Core functions')], needed_libraries=[('sqlod', ['/opt/sapdb/interfaces/odbc/lib'], '\[SAP DB\]')], data_files=['mx/ODBC/SAPDB/COPYRIGHT', 'mx/ODBC/SAPDB/LICENSE', 'mx/ODBC/SAPDB/README'], packages=['mx.ODBC.SAPDB'], required=0 ), Thanks, -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/