[Python-Dev] problems building python2.7

Michael Foord fuzzyman at voidspace.org.uk
Fri Nov 9 11:52:06 CET 2012


On 9 Nov 2012, at 09:57, Chris Withers <chris at simplistix.co.uk> wrote:

> Hi All,
> 
> I wanted to run the unit tests before checking in the patch for http://bugs.python.org/issue16441, even though it's a trivial change, so I was trying to follow the instructions at:
> 
> http://docs.python.org/devguide/
> 
> I'm on MacOS, so following the "unix" instructions did:
> 
> ./configure --with-pydebug && make -j2
> 
> This appears to have worked, given the end of the output:
> 
> Python build finished, but the necessary bits to build these modules were not found:
> _bsddb             dl                 gdbm
> imageop            linuxaudiodev      ossaudiodev
> readline           spwd               sunaudiodev
> To find the necessary bits, look in setup.py in detect_modules() for the module's name.
> 
> running build_scripts
> creating build/scripts-2.7
> copying and adjusting /Users/chris/LocalHG/cpython/Tools/scripts/pydoc -> build/scripts-2.7
> copying and adjusting /Users/chris/LocalHG/cpython/Tools/scripts/idle -> build/scripts-2.7
> copying and adjusting /Users/chris/LocalHG/cpython/Tools/scripts/2to3 -> build/scripts-2.7
> copying and adjusting /Users/chris/LocalHG/cpython/Lib/smtpd.py -> build/scripts-2.7
> changing mode of build/scripts-2.7/pydoc from 644 to 755
> changing mode of build/scripts-2.7/idle from 644 to 755
> changing mode of build/scripts-2.7/2to3 from 644 to 755
> changing mode of build/scripts-2.7/smtpd.py from 644 to 755
> [65930 refs]
> 
> However, I can't find the python it's built...


It should be python.exe (yes really).

After the build you should be able to do:

	./python.exe

Michael


> I thought I'd be clever and try:
> 
> buzzkill:cpython chris$ cat build/scripts-2.7/2to3
> #!/usr/local/bin/python2.7
> ...
> 
> There is a python there, but it's a symlink put in place around a year ago.
> 
> So, where should I look for the built python?
> 
> Okay, so regardless, my change is only to the stdlib, so I thought I'd try the test instructions anyway:
> 
> /usr/local/bin/python2.7 -m test -j3 gives:
> 
> /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named test.__main__; 'test' is a package and cannot be directly executed
> 
> Now, if this had worked, would it have discovered the right gzip tests, or is it going to run whatever came with the python2.7 distro the binary comes from?
> 
> Chris
> 
> 
> -- 
> Simplistix - Content Management, Batch Processing & Python Consulting
>            - http://www.simplistix.co.uk
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
> 


--
http://www.voidspace.org.uk/


May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing 
http://www.sqlite.org/different.html







More information about the Python-Dev mailing list