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

bpo-10496: distutils check_environ() handles getpwuid() error #10931

Merged
merged 2 commits into from Dec 18, 2018

Conversation

Projects
None yet
4 participants
@vstinner
Copy link
Member

commented Dec 5, 2018

check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.

https://bugs.python.org/issue10496

bpo-10496: distutils check_environ() handles getpwuid() error
check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.

@vstinner vstinner merged commit 17d0c05 into python:master Dec 18, 2018

5 checks passed

Azure Pipelines PR #20181205.31 succeeded
Details
bedevere/issue-number Issue number 10496 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@miss-islington

This comment has been minimized.

Copy link

commented Dec 18, 2018

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒🤖

miss-islington added a commit to miss-islington/cpython that referenced this pull request Dec 18, 2018

bpo-10496: distutils check_environ() handles getpwuid() error (python…
…GH-10931)

check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.
(cherry picked from commit 17d0c05)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
@bedevere-bot

This comment has been minimized.

Copy link

commented Dec 18, 2018

GH-11212 is a backport of this pull request to the 3.7 branch.

@vstinner vstinner deleted the vstinner:distutils_check_environ branch Dec 18, 2018

miss-islington added a commit that referenced this pull request Dec 18, 2018

bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)
check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.
(cherry picked from commit 17d0c05)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

vstinner added a commit that referenced this pull request Dec 18, 2018

bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931
…) (GH-11213)

check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.

(cherry picked from commit 17d0c05)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.