[Distutils] Setup configuration file and multiple libraries for extensions modules
Sylvain Fourmanoit
syfou at users.sourceforge.net
Fri May 20 07:45:03 CEST 2005
Hi,
suppose you have a setup.cfg file along your setup.py script, and that you
want to use it to specify multiple external C libraries to link
extensions modules against. Something like:
[build_ext]
libraries=first_lib second_lib
...
On Python 2.4.1, you read from
distutils.command.build_ext.build_ext.finalize_options() on line 149-150
from the build_ext.py file:
if type(self.libraries) is StringType:
self.libraries = [self.libraries]
Doesn't it mishandle this case, of did I miss the point? It appears to me
that something similar to:
if type(self.libraries) is StringType:
self.libraries = string.split(self.libraries)
would be the correct way to handle this (in fact, similar string splits
already take place for include_dirs and library_dirs)... I just want to know
how you are supposed to specify more than one library in a configuration
file with current implementation. :-)
Thanks,
--
Sylvain <syfou at users.sourceforge.net>
More information about the Distutils-SIG
mailing list