This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mac Universal Build of Python confuses distutils
Type: Stage:
Components: Distutils Versions: Python 2.4
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: loewis, richard, ronaldoussoren
Priority: normal Keywords:

Created on 2006-07-28 06:02 by richard, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (7)
msg29340 - (view) Author: Richard Jones (richard) * (Python committer) Date: 2006-07-28 06:02
I'm sorry I can't provide a fully-detailed report 
here, but I'm not in a position to be able to 
reproduce the problem.

In short, I installed the Universal build of Python 
2.4.3 for the Mac downloaded from:

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

I don't know whether this is the same as the download 
from:

http://www.python.org/download/releases/2.4.3/

Once installed, I attempted to build ctypes.

The build failed due to an assembly error (unknown 
instruction). I'm not familiar with the PPC or x86 
assembler code so couldn't do a thorough analysis.

I needed Python2.4 to work, so I found an older 
PPC-only installer and used that.
msg29341 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-07-28 06:28
Logged In: YES 
user_id=580910

Which version of ctypes did you try to build?
msg29342 - (view) Author: Richard Jones (richard) * (Python committer) Date: 2006-07-28 06:47
Logged In: YES 
user_id=6405

0.9.9.6
msg29343 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-08-16 13:25
Logged In: YES 
user_id=21627

This might be a ctypes limitation: it might be that ctypes
doesn't support x86-OSX (atleast in this release).
msg29344 - (view) Author: Richard Jones (richard) * (Python committer) Date: 2006-08-16 21:52
Logged In: YES 
user_id=6405

I successfully built ctypes on PPC OSX using a 
non-universal build. Also, I wasn't running on x86 OSX so 
it shouldn't have tried to build that.
msg29345 - (view) Author: Richard Jones (richard) * (Python committer) Date: 2006-11-28 21:56
I just successfully built ctypes 1.0.1 on a MacBook (ie. x86) OS X machine. I don't know whether it builds on a PPC machine.
msg29346 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2007-07-09 07:35
I'm closing this bug, the problem is in ctypes installer you used.

For the record: you can build a ppc/intel only version of an extension by patching the setup.py of the project your building and adding ('-arch', 'i386') or ('-arch', 'ppc') to the extra_compile_args and extra_link_args of Extension objects (I'm typing this without looking at the documention and have probably misspelled these argument names)
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43737
2006-07-28 06:02:24richardcreate