Skip to content

'./configure; make install' fails in setup.py step if .pydistutils.cfg specifies 'home' #50388

Closed

Description

@bitdancer
BPO 6138
Nosy @tarekziade, @ned-deily, @merwok, @bitdancer
Superseder
  • bpo-4655: during Python installation, setup.py should not use .pydistutils.cfg
  • 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 = None
    closed_at = <Date 2013-02-20.08:53:50.768>
    created_at = <Date 2009-05-28.21:01:53.709>
    labels = ['build']
    title = "'./configure; make install' fails in setup.py step if .pydistutils.cfg specifies 'home'"
    updated_at = <Date 2013-02-20.08:53:50.766>
    user = 'https://github.com/bitdancer'

    bugs.python.org fields:

    activity = <Date 2013-02-20.08:53:50.766>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-02-20.08:53:50.768>
    closer = 'ned.deily'
    components = []
    creation = <Date 2009-05-28.21:01:53.709>
    creator = 'r.david.murray'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 6138
    keywords = []
    message_count = 8.0
    messages = ['88476', '88477', '88478', '88481', '88482', '88485', '121411', '182482']
    nosy_count = 4.0
    nosy_names = ['tarek', 'ned.deily', 'eric.araujo', 'r.david.murray']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '4655'
    type = 'compile error'
    url = 'https://bugs.python.org/issue6138'
    versions = ['Python 3.1', 'Python 2.7']

    Activity

    1. bitdancer commented on May 28, 2009

      @bitdancer
      MemberAuthor

      With current trunk, after a make distclean; ./configure; make install
      sequence, I get the following error:

      [...]
      # Substitution happens here, as the completely-expanded BINDIR
      # is not available in configure
      sed -e "s,@exename@,/usr/local/bin/python2.7," < ./Misc/python-config.in

      python-config
      /usr/bin/install -c python-config /usr/local/bin/python2.7-config
      rm python-config
      ./python -E ./setup.py install \
      --prefix=/usr/local \
      --install-scripts=/usr/local/bin \
      --install-platlib=/usr/local/lib/python2.7/lib-dynload \
      --root=/
      running install
      error: must supply either home or prefix/exec-prefix -- not both
      make: *** [sharedinstall] Error 1

    2. tarekziade commented on May 28, 2009

      tarekziademannequin
      Mannequin

      works for me under MacOS X, I am trying now under debian

    3. bitdancer commented on May 28, 2009

      @bitdancer
      MemberAuthor

      Benjamin can't reproduce it either. Must be something weird in my
      environment, so I'm lowering the priority.

    4. tarekziade commented on May 28, 2009

      tarekziademannequin
      Mannequin

      Ok.

      I confirm it works fine on a standard debian as well

    5. bitdancer commented on May 28, 2009

      @bitdancer
      MemberAuthor

      I can see that 'self.home' is '~' when that error message is generated,
      but I can't figure out where self.home gets set. Any clues you can give me?

    6. bitdancer commented on May 28, 2009

      @bitdancer
      MemberAuthor

      I figured it out. It turns out that a while back I created a
      .pydistutils.cfg file and put home in there.

      There is a bug here, of some sort. Either the .pydistutils.cfg file's
      install clause should override the default --prefix somehow, or the
      error message should indicate where the setting for 'home' and
      '--prefix' came from to enable the user to debug the configuration. In
      the latter case there would also need to be a way to explicitly tell
      either make install or configure to ignore .pydistutils.cfg. In the
      former case, an explicit --prefix passed to configure would need to
      override .pydistutils.cfg.

      Or perhaps there's some other solution I'm not seeing at the moment.

    7. changed the title [-]./configure; make install fails in setup.py step[/-] [+]'./configure; make install' fails in setup.py step if .pydistutils.cfg specifies 'home'[/+] on May 28, 2009
    8. merwok commented on Nov 18, 2010

      @merwok
      Member

      See bpo-4655. (Not sure which one is the superseder.)

    9. ned-deily commented on Feb 20, 2013

      @ned-deily
      Member

      Let's consolidate these.

    10. 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

    No one assigned

      Labels

      buildThe build process and cross-build

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions