Pycrypto will not build on Mac OS X 10.6 up with Xcode 4 installed.

Reported by Klynton on 2011-06-21
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fabric
New
Undecided
Unassigned
Python-Crypto
Undecided
Unassigned

Bug Description

There are numerous search results for this but I was unable to find a ticket on this bug tracker for this:

http://superuser.com/questions/259278/python-2-6-1-pycrypto-2-3-pypi-package-broken-pipe-during-build
http://lists.dlitz.net/pipermail/pycrypto/2010q3/000254.html

I've seen 100s of work arounds, however, not one of them fixes the actual problem which is that pycrypto tries to use the 10.4 SDK and adds the -ppc compilation flag even if you have set:

ARCHFLAGS="-arch i386 -arch x86_64"

To fix the problem the compile options either need to respect ARCHFLAGS, detect the version of Xcode and install accordingly, or just remove -ppc completely.

Pycrypto doesn't install using easy_install or pip because they try to reinstall pycrypto which has to be built from source in order to work. (The only reason I'm even using pycrypto is to use Fabric.)

Dwayne Litzenberger (dlitz) wrote :

Hi, thanks for the bug report.

This looks like a Python setuptools/distutils issue, not a PyCrypto issue.

Changed in pycrypto:
status: New → Incomplete
Dwayne Litzenberger (dlitz) wrote :

It looks like the issue is being tracked here: http://bugs.python.org/setuptools/issue122

Dwayne Litzenberger (dlitz) wrote :

Correction: The issue is being tracked here: http://bugs.python.org/issue11623

Changed in pycrypto:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.