Skip to content

Build fails at running build_scripts #48774

Closed

Description

@chaz6
mannequin
BPO 4524
Nosy @amauryfa, @tarekziade
Files
  • build_scripts.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/tarekziade'
    closed_at = <Date 2009-02-21.22:46:55.725>
    created_at = <Date 2008-12-04.15:42:21.882>
    labels = ['build', 'library']
    title = 'Build fails at running build_scripts'
    updated_at = <Date 2009-02-21.22:46:55.724>
    user = 'https://bugs.python.org/chaz6'

    bugs.python.org fields:

    activity = <Date 2009-02-21.22:46:55.724>
    actor = 'tarek'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2009-02-21.22:46:55.725>
    closer = 'tarek'
    components = ['Build', 'Distutils']
    creation = <Date 2008-12-04.15:42:21.882>
    creator = 'chaz6'
    dependencies = []
    files = ['12218']
    hgrepos = []
    issue_num = 4524
    keywords = ['patch', 'needs review']
    message_count = 5.0
    messages = ['76889', '76891', '76927', '79048', '82587']
    nosy_count = 3.0
    nosy_names = ['amaury.forgeotdarc', 'tarek', 'chaz6']
    pr_nums = []
    priority = 'high'
    resolution = None
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue4524'
    versions = ['Python 2.6', 'Python 3.0', 'Python 3.1', 'Python 2.7']

    Activity

    1. chaz6 commented on Dec 4, 2008

      chaz6mannequin
      MannequinAuthor

      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_command
          self.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 implicitly
      make: *** [sharedmods] Error 1
    2. added
      buildThe build process and cross-build
      on Dec 4, 2008
    3. amauryfa commented on Dec 4, 2008

      @amauryfa
      Contributor

      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.

    4. chaz6 commented on Dec 4, 2008

      chaz6mannequin
      MannequinAuthor

      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.

    5. tarekziade commented on Jan 4, 2009

      tarekziademannequin
      Mannequin

      I will write an isolated test in distutils to reproduce this issue,

    6. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Jan 4, 2009
    7. self-assigned this
      on Jan 4, 2009
    8. tarekziade commented on Feb 21, 2009

      tarekziademannequin
      Mannequin

      fixed in r69598. Thanks for the patch Amaury.

    9. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    buildThe build process and cross-buildstdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions