In article <20090924131338.ga21...@panix.com>, Aahz <a...@pythoncraft.com> wrote: > On Wed, Sep 23, 2009, Ned Deily wrote: > > In article <20090923163646.ga26...@panix.com>, > > Aahz <a...@pythoncraft.com> wrote: > >> On Wed, Sep 23, 2009, Christopher Barker wrote: > >> > Aahz wrote: > >> >> On Wed, Sep 23, 2009, mathew oakes wrote: > >> >>>> DistutilsPlatformError: invalid Python installation: unable to > >> >>>> open > >> >>>> /Full/Path/To/App.app/Contents/Resources/include/python2.6/pyconfig.h > >> >>>> (No such file or directory) > >> >>> but python in in the bundle at .../Resources/lib/ and it doesn't have > >> >>> a > >> >>> pyconfig header > >> >> Ayup, you need to copy it from python2.5 -- pretty annoying. > >> > Indeed. Does anyone know what pyconfig.h is used for? Is it a setuptools > >> > > >> > thing? py2app was written before setuptools, and I've found most of what > >> > I've had to do by hand was due to egg issues. > >> It's a setuptools thing. > > I believe pyconfig.h is created by the compiler build ./configure script > > to capture the relevant platform-dependent build configuration for that > > python instance and is used by distutils build_ext so that package C > > extensions can be correctly built. > It's not included in the .dmg for Python 2.6.
Now I'm really confused :=) I've just installed from the final python.org 2.6, 2.6.1, and 2.6.2 install.dmgs and, for me, each one installed what appears to be an appropriate file. For example: -rw-rw-r-- 1 root admin 30696 Apr 16 00:29 /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pycon fig.h Again, I'm no py2app expert but it looks like this might have been a problem that Ronald fixed in py2app svn r65 (aka 0.4.0) back in 2008-01. >From various past postings, I gather py2app hasn't been formally released in a long time and that the recommendation is to work from a recent svn checkout (currently r80 and working towards 0.4.2). -- Ned Deily, n...@acm.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig