Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bitdancer opened this issue May 28, 2009 · 8 comments
Labels
build The build process and cross-build

Comments

@bitdancer
Copy link
Member

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']

    @bitdancer
    Copy link
    Member Author

    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

    @bitdancer bitdancer added release-blocker build The build process and cross-build labels May 28, 2009
    @tarekziade
    Copy link
    Mannequin

    tarekziade mannequin commented May 28, 2009

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

    @bitdancer
    Copy link
    Member Author

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

    @tarekziade
    Copy link
    Mannequin

    tarekziade mannequin commented May 28, 2009

    Ok.

    I confirm it works fine on a standard debian as well

    @bitdancer
    Copy link
    Member Author

    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?

    @bitdancer
    Copy link
    Member Author

    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.

    @bitdancer bitdancer changed the title ./configure; make install fails in setup.py step './configure; make install' fails in setup.py step if .pydistutils.cfg specifies 'home' May 28, 2009
    @merwok
    Copy link
    Member

    merwok commented Nov 18, 2010

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

    @ned-deily
    Copy link
    Member

    Let's consolidate these.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants