[Distutils] Python packaging + conditional use of C library shipped with the package

2013-07-08 Thread Laurent Gautier
Hi, I would like to make a package that is able to use a system's given C-library if found, or compile its own version shipped with the package. This is bringing up two questions: - Is there a distutils/distribute facility to help test for the presence (and version) of a C library, or do I

Re: [Distutils] Python packaging + conditional use of C library shipped with the package

2013-07-08 Thread Gabriel de Perthuis
On Mon, 08 Jul 2013 13:01:25 +0200, Laurent Gautier wrote: Hi, I would like to make a package that is able to use a system's given C-library if found, or compile its own version shipped with the package. This is bringing up two questions: - Is there a distutils/distribute facility to

Re: [Distutils] Python packaging + conditional use of C library shipped with the package

2013-07-08 Thread zooko
On Mon, Jul 08, 2013 at 01:01:25PM +0200, Laurent Gautier wrote: Hi, I would like to make a package that is able to use a system's given C-library if found, or compile its own version shipped with the package. We do something similar in pycryptopp, but instead of automatically testing for

Re: [Distutils] Python packaging + conditional use of C library shipped with the package

2013-07-08 Thread Laurent Gautier
On 07/08/2013 05:33 PM, zooko wrote: On Mon, Jul 08, 2013 at 01:01:25PM +0200, Laurent Gautier wrote: Hi, I would like to make a package that is able to use a system's given C-library if found, or compile its own version shipped with the package. We do something similar in pycryptopp, but