Re: header installation issue breaks build for pyobjc 2.3 and 2.4

Zach Pincus <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
[argent:~] zpincus% python -c 'import setuptools; print setuptools.__file__'
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/__init__.pyc

According to pypi where I grabbed the package from, this is the latest
version... but it does seem to date from late 2009!

Maybe that's the trouble... sorry for the bother if so!

Also, for the record, it was a bit tricky to find out how to build the
packages manually (e.g. start with pyobjc-core and then move to the
various pyobjc-framework-XXX directories).

Thanks,
Zach



On Thu, Apr 28, 2011 at 7:26 AM, Ronald Oussoren <[email protected]> wrote:
>
> On 27 Apr, 2011, at 18:45, Zach Pincus wrote:
>
>> Hello all,
>>
>> I had some trouble installing from source pyobjc 2.3 or 2.4 from the
>> SVN tag or trunk (respectively), that I seem to have isolated to a
>> problem with pyobjc-core not installing pyobjc-api.h and
>> pyobjc-compat.h into EGG-INFO/include.
>
> That's not good. What version of setuptools/distribute do you use?   The following command should give enough information:
>
> $ python -c 'import setuptools; print setuptools.__file__'
>
> The reason I ask: 'python setup.py install' works on my machine (using a recent version of distribute instead of setuptools).
>
> BTW. I'd like to know the version of setuptools on your machine even if installing distribute fixes the problem for you. There are two reasons for that, firstly I can try to debug why the file doesn't get installed, and secondly I tweak the setup.py of pyobjc-core to give an error message when it detects a too old version of setuptools.
>
> Ronald
>>
>> This causes 'python setup.py install' to fail for other modules.
>>
>> Here's what I did:
>> svn co http://svn.red-bean.com/pyobjc/tags/pyobjc-2.3.1/ pyobjc-2.3.1
>> cd pyobjc-2.3.1/pyobjc-core/
>> python setup.py install
>> cd ../pyobjc-framework-Cocoa
>> python setup.py install
>>>>> FAIL <<<
>>
>> The problem is that, as above, those headers aren't installed into
>> EGG-INFO/include, so they don't show up in the dist info when
>> pyobjc_setup.py requests it, causing that file to instead write out an
>> old and incorrect-for-pyobjc-2.3 api header file (and no compat header
>> file), which then breaks subsequent builds.
>>
>> I fixed this by manually copying the header files to EGG-INFO/include.
>> I did not have time to track down why they weren't installed properly
>> in the first place. I had a similar-looking issue with 2.4 from the
>> trunk, but I did verify that this fix solved it.
>>
>> Perhaps I was going about installing things all wrong, but regardless,
>> I think there's some kind of bug in here. Good luck with that.
>>
>> Zach
>>
>> ------------------------------------------------------------------------------
>> WhatsUp Gold - Download Free Network Management Software
>> The most intuitive, comprehensive, and cost-effective network
>> management toolset available today.  Delivers lowest initial
>> acquisition cost and overall TCO of any competing solution.
>> http://p.sf.net/sfu/whatsupgold-sd
>> _______________________________________________
>> Pyobjc-dev mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
>
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.