compiling python on Mac OS X Beta

jpb jpb at mycroft.communiweb.net
Fri Sep 22 05:16:01 CEST 2000


In article <mt3diutp6x.fsf at astron.berkeley.edu>, 
johann at physics.berkeley.edu wrote:

>Hi folks,
>
>Has anyone had any luck compiling python (1.5.2, 1.6, 2.0b, I don't
>care) on the Macintosh OS X?  I tried and failed this afternoon.
>1.5.2 wanted to put both a "Python/" directory and the "python"
>executable in a case-insensitive directory (so it compiled, just
>didn't test or install), while 1.6 died on a missing header file,
>something like "mach-o/rld.h", but I am shamed to admit I forget the
>exact name.
>
>Any tips or pointers?

This patch was written by sergeBeauchamp at mac.com

Rather than make you download the whole tarball, here's the relevant 
parts.

1) Rename the Python directory to Python_

[jpb at athena]$ diff Python-1.5.2/Makefile Python-1.5.2-dist/Makefile
149c149
< SUBDIRS=      Parser Objects Python_ Modules
---
> SUBDIRS=      Parser Objects Python Modules
222,223c222,223
< Python_:
<               cd Python_ ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
---
> Python:
>               cd Python ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
230c230
< Modules:      Parser Python_ Objects
---
> Modules:      Parser Python Objects

[jpb at athena]$ diff  Python-1.5.2/Makefile.in 
Python-1.5.2-dist/Makefile.in 
149c149
< SUBDIRS=      Parser Objects Python_ Modules
---
> SUBDIRS=      Parser Objects Python Modules
222,223c222,223
< Python_:
<               cd Python_ ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
---
> Python:
>               cd Python ; $(MAKE) OPT="$(OPT)" VERSION="$(VERSION)" \
230c230
< Modules:      Parser Python_ Objects
---
> Modules:      Parser Python Objects

  
I haven't tried to do 1.6 or 2.0 yet.  I'm still running 1.5.2 on all my 
linux servers and don't want to have different interpreter versions.

jpb

-- 
Joseph Block <jpb at communiweb.net>
"Any government that is powerful enough to give you everything you want,
 is powerful enough to take away everything you have."
 - Barry Goldwater



More information about the Python-list mailing list