Question about compiling python 30 from subversion repository on OSX
nad at acm.org
Sun Apr 24 08:18:14 CEST 2011
<c1ffbdb9-1a2b-41d7-970d-e7de1a9730ea at glegroupsg2000goo.googlegroups.com
Anthony Kong <anthony.hw.kong at gmail.com> wrote:
> I have checked out source code from this url
> http://svn.python.org/projects/python/branches/py3k, then run
> ./configure --with-universal-archs=64-bit
> First of all, I got this message:
> Modules/Setup.dist is newer than Modules/Setup;
> check to make sure you have all the updates you
> need in your Modules/Setup file.
> Usually, copying Modules/Setup.dist to Modules/Setup will work.
> Then the build failed with these messages
> /usr/bin/ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols
> /usr/bin/ranlib: file: libpython3.3m.a(pymath.o) has no symbols
> ranlib libpython3.3m.a
> ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols
> ranlib: file: libpython3.3m.a(pymath.o) has no symbols
> gcc -framework CoreFoundation -o python.exe Modules/python.o
> libpython3.3m.a -ldl -framework CoreFoundation
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> Fatal Python error: Py_Initialize: can't initialize sys standard streams
> Traceback (most recent call last):
> File "/Users/antkong/wd/python/python3/Lib/io.py", line 60, in <module>
> /bin/sh: line 1: 55310 Abort trap CC='gcc' LDSHARED='gcc -bundle
> -undefined dynamic_lookup ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall
> -Wstrict-prototypes' ./python.exe -E ./setup.py build
> make: *** [sharedmods] Error 134
> I wonder what caused these error messages. Is it possible that I am checking
> out the wrong branch?
Python development has recently moved from using Subversion to Mercurial
(hg). The py3k branch in the svn repository at that URL is now frozen
in-time and not being updated.
$ svn info
Repository Root: http://svn.python.org/projects
Repository UUID: 6015fed2-1504-0410-9fe1-9d1591cc4771
Node Kind: directory
Last Changed Author: giampaolo.rodola
Last Changed Rev: 88761
Last Changed Date: 2011-03-06 13:04:47 -0800 (Sun, 06 Mar 2011)
Information on how to access the hg repos is contained in the new Python
If you use hg to clone a copy of the current repo, you'll see something
more like this:
$ hg clone http://hg.python.org/cpython
$ cd cpython
$ hg log -b default
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Apr 23 17:56:06 2011 +0200
summary: Remove unused private function
Try the build again from a clean directory using the current hg repo.
That said, if the message appears, follow the directions about copying
Modules/Setup.dist to Modules/Setup. That is likely the source of your
original build failure.
> The 3.2 branch
> (http://svn.python.org/projects/python/branches/release32-maint) can be
> compiled without much issue.
That is out-of-date as well. All current development and maintenance
branches (2.7, 3.1, 3.2, default(=py3k)) are now maintained in the hg
repo as described in the developer's guide.
nad at acm.org
More information about the Python-list