[AstroPy] [astropy-dev] ANN: Astropy v0.1

Erik Bray embray@stsci....
Tue Jul 10 11:49:44 CDT 2012


On 07/10/2012 11:43 AM, Tim Jenness wrote:
>> The only problem I see is that in some of the zlib and cfitsio files,
>> function names were renamed with a _pyfits_ prefix to prevent binding
>> those symbols to the system versions of those libraries at runtime.  I
>> would need some way to resolve this--perhaps a define in a header file
>> somewhere.  Any ideas?
>
> When Ole put the AST library on debian AST initially came bundled with
> SOFA and PAL libraries. The way we dealt with that was with an include
> file that redefined the function names when we were using the private
> versions but could use the normal names when linking against the
> installed debian versions. There was a switch to the configure script
> for people wanting to link against the installed versions.

That seems like the way to go.  A define flag set at compile time could 
switch this on or off--a simple change to make for a Debian package.

Erik


More information about the AstroPy mailing list