homepage

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.

Author trentm
Recipients ronaldoussoren, trentm
Date 2008年07月17日.17:02:45
SpamBayes Score 0.002570014
Marked as misclassified No
Message-id <1216314168.41.0.164548516306.issue3393@psf.upfronthosting.co.za>
In-reply-to
Content
http://svn.python.org/view?rev=63955&view=rev
"MacOS X: Enable 4-way universal builds ..."
This revision made the following change to Mac/Makefile.in:
http://svn.python.org/view/python/trunk/Mac/Makefile.in?rev=63955&view=diff&r1=63955&r2=63954&p1=python/trunk/Mac/Makefile.in&p2=/python/trunk/Mac/Makefile.in
The last hunk (part of the "installmacsubtree" target) and a bit of the
preceding hunk uses `arch` with arguments:
---------------------------------
 install_BuildApplet:
-	$(RUNSHARED) $(BUILDPYTHON) $(srcdir)/scripts/BuildApplet.py \
+	$(RUNSHARED) arch -ppc -i386 $(BUILDPYTHON)
$(srcdir)/scripts/BuildApplet.py \
 		--destroot "$(DESTDIR)" \
-		--python $(INSTALLED_PYTHONAPP) \
+	
--python=$(prefix)/Resources/Python.app/Contents/MacOS/$(PYTHONFRAMEWORK)`test
-f
"$(DESTDIR)$(prefix)/Resources/Python.app/Contents/MacOS/$(PYTHONFRAMEWORK)-32"
&& echo "-32"` \
 		--output "$(DESTDIR)$(PYTHONAPPSDIR)/Build Applet.app" \
 		$(srcdir)/scripts/BuildApplet.py
 
@@ -225,7 +279,7 @@
 	done
 
 
-	$(RUNSHARED) $(BUILDPYTHON) $(CACHERSRC) -v $(DESTDIR)$(MACLIBDEST)
$(DESTDIR)$(MACTOOLSDEST)
+	$(RUNSHARED) arch -ppc -i386 $(BUILDPYTHON) $(CACHERSRC) -v
$(DESTDIR)$(MACLIBDEST) $(DESTDIR)$(MACTOOLSDEST)
 	$(RUNSHARED) $(BUILDPYTHON) -Wi -tt $(compileall) -d $(MACTOOLSDEST)
-x badsyntax $(DESTDIR)$(MACTOOLSDEST)
 	$(RUNSHARED) $(BUILDPYTHON) -O -Wi -tt $(compileall) -d
$(MACTOOLSDEST) -x badsyntax $(DESTDIR)$(MACTOOLSDEST)
---------------------------------
That form of calling `arch` is only supported on Mac OS X 10.5
(Leopard), I believe.
----------------------------------
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.4.11
BuildVersion: 8S2167
$ man arch | cat
ARCH(1) BSD General Commands Manual 
ARCH(1)
NAME
 arch -- print architecture type
SYNOPSIS
 arch
DESCRIPTION
 The arch command displays the machine's architecture type.
SEE ALSO
 machine(1)
Mac OS August 20, 1997 
Mac OS
----------------------------------
Here is the current man page for arch (I had to look to try to see what
Ronald was trying to do with the Makefile change) :)
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/arch.1.html
I don't fully understand why the "arch -ppc -i386" is necessary for
"$(BUILDPYTHON)".
I'm not sure what the easiest solution to this would be... or if
supporting "make frameworkinstallframework" (which eventually calls this
target) on Mac OS X <10.5 is considered important enough.
Perhaps a new 
 RUNARCH=@RUNARCH@
could be added to Mac/Makefile.in with the associated configure support
to have that be blank unless `--with-universal-archs=all` was specified?
History
Date User Action Args
2008年07月17日 17:02:48trentmsetspambayes_score: 0.00257001 -> 0.002570014
recipients: + trentm, ronaldoussoren
2008年07月17日 17:02:48trentmsetspambayes_score: 0.00257001 -> 0.00257001
messageid: <1216314168.41.0.164548516306.issue3393@psf.upfronthosting.co.za>
2008年07月17日 17:02:47trentmlinkissue3393 messages
2008年07月17日 17:02:45trentmcreate

AltStyle によって変換されたページ (->オリジナル) /