This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients MrJean1, loewis
Date 2008-04-05.17:35:56
SpamBayes Score 0.011877038
Marked as misclassified No
Message-id <47F7B87A.6090805@v.loewis.de>
In-reply-to <1207406528.52.0.512033034045.issue2552@psf.upfronthosting.co.za>
Content
> Yes, but the _ctypes module requires gcc, as Thomas Heller mentioned.

So the proper fix for that would be to port it to SunPro, of course.

> The 
> only thing which can be done is avoid building the _ctypes module if the 
> compiler is not gcc.

I'm not sure whether that would be much better than the status quo,
though. People would continue to complain that the ctypes module is not
built.

Why do you consider the current behaviour incorrect?

> I did look at fixing that but have not found the 
> proper way to do that.

There are several ways. One is to skip compilation in setup.py, for
which you should then determine whether the compiler is gcc. For
that, you could look at ac_compiler_gnu in configure.in, and
set a variable in Makefile.pre.in if the compiler is GCC. Then,
in setup.py, you could look for that variable as parsed from
the Makefile, and skip _ctypes accordingly.

Alternatively, you could check for __GNUC__ when compiling
ctypes, and make the compiler produce a better-understandable
#error.

Regards,
Martin
History
Date User Action Args
2008-04-05 17:35:59loewissetspambayes_score: 0.011877 -> 0.011877038
recipients: + loewis, MrJean1
2008-04-05 17:35:57loewislinkissue2552 messages
2008-04-05 17:35:56loewiscreate