You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On linux-g++-32 with command line ./configure --enable-ipv6 --with- suffix=3, python is compiled okay but the build scripts fail as
follows:-
running build_scripts
copying and adjusting /tmp/Python-3.0/Tools/scripts/idle -> build/
scripts-3.0
Traceback (most recent call last):
File "./setup.py", line 1533, in <module>
main()
File "./setup.py", line 1528, in main'Lib/smtpd.py']
File "/tmp/Python-3.0/Lib/distutils/core.py", line 149, in setup
dist.run_commands()
File "/tmp/Python-3.0/Lib/distutils/dist.py", line 942, in
run_commands
self.run_command(cmd)
File "/tmp/Python-3.0/Lib/distutils/dist.py", line 962, in run_command
cmd_obj.run()
File "/tmp/Python-3.0/Lib/distutils/command/build.py", line 128, in
run
self.run_command(cmd_name)
File "/tmp/Python-3.0/Lib/distutils/cmd.py", line 317, in run_commandself.distribution.run_command(command)
File "/tmp/Python-3.0/Lib/distutils/dist.py", line 962, in run_command
cmd_obj.run()
File "/tmp/Python-3.0/Lib/distutils/command/build_scripts.py", line
51, in run
self.copy_scripts()
File "/tmp/Python-3.0/Lib/distutils/command/build_scripts.py", line
108, in copy_scripts
+ sysconfig.get_config_var("EXE")),
TypeError: Can't convert 'int' object to str implicitlymake: *** [sharedmods] Error 1
The cause is that distutils.sysconfig.parse_makefile() tries to convert
each value to an int, and does succeed on "--with-suffix=3".
The attached patch uses %s formatting to build the program name, this
will accept int values.
All versions are affected.
chaz6 commented on Dec 4, 2008
chaz6mannequin
MannequinAuthor
More actions
In hindsight I did not need to use --with-suffix as I assumed the
interpreter would be installed as "python" by default, but it is not.
The patch however does fix the reported problem for me.
tarekziade commented on Jan 4, 2009
tarekziademannequin
Mannequin
More actions
I will write an isolated test in distutils to reproduce this issue,
Activity
chaz6 commentedon Dec 4, 2008
On linux-g++-32 with command line
./configure --enable-ipv6 --with- suffix=3, python is compiled okay but the build scripts fail asfollows:-
amauryfa commentedon Dec 4, 2008
The cause is that distutils.sysconfig.parse_makefile() tries to convert
each value to an int, and does succeed on "--with-suffix=3".
The attached patch uses %s formatting to build the program name, this
will accept int values.
All versions are affected.
chaz6 commentedon Dec 4, 2008
In hindsight I did not need to use --with-suffix as I assumed the
interpreter would be installed as "python" by default, but it is not.
The patch however does fix the reported problem for me.
tarekziade commentedon Jan 4, 2009
I will write an isolated test in distutils to reproduce this issue,
tarekziade commentedon Feb 21, 2009
fixed in r69598. Thanks for the patch Amaury.