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 chris.jerdonek
Recipients chris.jerdonek
Date 2012年09月18日.14:26:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347978379.29.0.810502621141.issue15964@psf.upfronthosting.co.za>
In-reply-to
Content
Building with--
./configure --with-pydebug && make -j2
errors out after switching branches from default to 2.7 when the system Python is Python 3 (on Mac OS X 10.7.4 using MacPorts).
To reproduce:
$ sudo port select python python32
$ python
No such file or directory
$ python3 -V
Python 3.2.3
$ hg update default
$ ./configure --with-pydebug && make -j2
$ hg update 2.7
$ cp Modules/Setup.dist Modules/Setup
$ ./configure --with-pydebug && make -j2
...
config.status: creating pyconfig.h
config.status: pyconfig.h is unchanged
creating Modules/Setup
creating Modules/Setup.local
creating Makefile
./install-sh -c -d Include
./Parser/asdl_c.py -h Include ./Parser/Python.asdl
gcc -c -fno-strict-aliasing -g -O2 -g -O0 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Parser/printgrammar.o Parser/printgrammar.c
gcc -c -fno-strict-aliasing -g -O2 -g -O0 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Parser/pgenmain.o Parser/pgenmain.c
 File "./Parser/asdl_c.py", line 1
 print "Must specify exactly one output file"
 ^
SyntaxError: invalid syntax
make: *** [Include/Python-ast.h] Error 1
make: *** Waiting for unfinished jobs....
Running "make distclean" doesn't fix this. Here is one work-around:
$ sudo port select python python27
$ ./configure --with-pydebug && make -j2
Perhaps the right work-around can be documented in the devguide, or maybe this can be addressed another way.
History
Date User Action Args
2012年09月18日 14:26:19chris.jerdoneksetrecipients: + chris.jerdonek
2012年09月18日 14:26:19chris.jerdoneksetmessageid: <1347978379.29.0.810502621141.issue15964@psf.upfronthosting.co.za>
2012年09月18日 14:26:18chris.jerdoneklinkissue15964 messages
2012年09月18日 14:26:18chris.jerdonekcreate

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