Re: [Pyobjc-dev] header installation issue breaks build for pyobjc 2.3 and 2.4
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2011-04-28 11:26:48
|
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 > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |