[egenix-users] Error compiling egenix-mx-base (again)

M.-A. Lemburg mal at egenix.com
Tue Aug 7 19:40:40 CEST 2012


M.-A. Lemburg wrote:
> Leonardo Santagada wrote:
>> On Fri, Aug 3, 2012 at 5:34 PM, M.-A. Lemburg <mal at egenix.com> wrote:
>>> Leonardo Santagada wrote:
>>>> On Fri, Aug 3, 2012 at 5:14 PM, M.-A. Lemburg <mal at egenix.com> wrote:
>>>>> Leonardo Santagada wrote:
>>>>>> other extensions like cython, pillow, simplejson and others that have
>>>>>> C modules all compile just fine, is this going to be fixed or should I
>>>>>> try installing python from homebrew?
>>>>>
>>>>> As far as I can see, there will be some minimal backport for Python 2.7.
>>>>
>>>> It is working for the other extensions I told you about... it just
>>>> don't work for egenix stuff.
>>>
>>> distutils' sysconfig.py was patched in 2.7.3 without paying too
>>> much attention to breaking things.
>>>
>>> mxSetup doesn't use the distutils sysconfig.py module, but has it's
>>> own way of configuring the compiler on Unix platforms (one which allows
>>> for more flexibility in overriding setting using environment variables).
>>>
>>> I guess we could change this to use distutils' sysconfig.py for Python 2.7.3,
>>> but if you look at this patch on the ticket:
>>> http://bugs.python.org/file26105/issue13950-version3.patch
>>> you'll see that the sysconfig.py patching is likely going to be
>>> removed again in 2.7.4.
>>
>> why not just use sysconfig.py or just have another module that does
>> this, then I (and everyone that use buildout/pip/easy_install) can
>> just install it without having to figure this out on every machine
>> that we need to install to?
>>
>>>
>>> The better way to do all this is using environment variables. Set CC to
>>> your compiler as mentioned on the bug message and things should work
>>> (now and also for 2.7.4).
>>
>> I don't have any clue to what those values should be, but sysconfig.py
>> does, in everymachine that I ever used. (my main problem in this
>> machine is where the macosx sdk are stored, but then again, sysconfig
>> knows).
> 
> We'll add a fix to the next patch level release of egenix-mx-base.

We've uploaded a snapshot with the fix to our server. Could you
give it a try ?

http://downloads.egenix.com/python/egenix-mx-base-3.2.5_dev_20120807.tar.gz

This is a source archive, so you'll have to do the usual
"python setup.py install" dance to get it installed.

The fix we've applied will test the compiler setup and try clang
in case it cannot find the compiler with which Python itself
was compiled. It should work with all supported Python versions
(not only Python 2.7.3 which includes the distutils fix).

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 07 2012)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
2012-08-25: FrOSCon, St. Augustin, Germany ...             18 days to go

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/




More information about the egenix-users mailing list