Re: [Pythonmac-SIG] The Universal Buld and py2app

2006-04-26 Thread Adam Tenderholt
 Did you check out the trunk, or the maintenance branch?  The trunk is
 not usable.

 http://svn.red-bean.com/bob/py2app/branches/py2app-0.2-maint/

I did use the maintenance branch. Sorry, should have specified.

 Also, you probably shouldn't use Python 2.3.5 as shipped on intel
 macs.  It's got some known bugs (endian and otherwise) and is old,
 use the 2.4 universal build:

 http://pythonmac.org/packages/py24-fat/

I tried this version when I was struggling to get PyQt to work.
However, I couldn't get sip-4.4.1 to work properly with this version.
It compiled just fine, but whenever you tried to import the sip
moduled (ie. when PyQt is configured), it fails with the message:

ImportError: Inappropriate file type for dynamic loading

I asked on the PyKDE mailing list, and I was that something in the
flags you use makes it give that error, and that compiling from source
(enabling framework, make framework install) should fix it.
Unfortunately, I got an error when I tried compiling from source:

/usr/bin/ld: warning Python.framework/Versions/2.4/Python cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (file not loaded)
/usr/bin/ld: Undefined symbols:
_PyMac_Error
_Py_Main
collect2: ld returned 1 exit status

It looks like this is due to ppc being specified somewhere. I didn't
see an easy to way to tell configure that I wanted i386 instead of
ppc. Is there a flag I can pass to the configure script, or do I have
to do a CFLAGS=-arch i386 and CXXFLAGS='-arch i386'? And how do I
make this a universal app?

Thanks for your help,

Adam
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] The Universal Buld and py2app

2006-04-25 Thread Adam Tenderholt
I just checked out py2app from the svn repository (revision 916).
However, it doesn't build for me. It gets stuck on the sip.py recipe.
The error is below:

  File /Developer/py2app-0.2/src/py2app/build_app.py, line 464, in
process_recipes
rval = check(self, mf)
  File /Developer/py2app-0.2/src/py2app/recipes/sip.py, line 40, in check
packages = self.config()
  File /Developer/py2app-0.2/src/py2app/recipes/sip.py, line 17, in config
qtdir = cfg.qt_lib_dir
  File 
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/sipconfig.py,
line 178, in __getattr__
raise AttributeError, \%s\ is not a valid configuration value
or user option % name
AttributeError: qt_lib_dir is not a valid configuration value or user option

I'm using sip-4.4.1 with MacPython 2.3.5 on an intel mac. PyQt builds
and scripts using pyqt work fine. Do you have any suggestions?

Thanks,

Adam
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] import sip problem (Universal Mac 2.4.3) and build options

2006-04-23 Thread Adam Tenderholt
I'm trying to get sip and PyQt working with Universal MacPython 2.4.3.
It compiles fine however trying to import sip results in the error:
ImportError: Inappropriate file type for dynamic loading. I posted
on the PyKDE/PyQt/sip mailing list, and it was suggested that I try to
reconfigure and rebuild Python-2.4.3 with:

DYNLOADFILE=dynload_shlib.o ./configure --enable-framework
--enable-toolbox-glue --enable-shared

Unfortunately, I get the following error during make:

/usr/bin/ld: warning Python.framework/Versions/2.4/Python cputype (18,
architecture ppc) does not match cputype (7) for specified -arch flag:
i386 (file not loaded)
/usr/bin/ld: Undefined symbols:
_PyMac_Error
_Py_Main
collect2: ld returned 1 exit status

I've looked online for the options used to compile Universal
MacPython, but I haven't had any luck. Is there a someplace I should
be looking?

Thanks,

Adam
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig