Skip to content

bpo-30273: update distutils.sysconfig #1515

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

Merged
merged 1 commit into from
May 9, 2017
Merged

Conversation

jkloth
Copy link
Contributor

@jkloth jkloth commented May 9, 2017

Fixes include directory returned when Python is compiled out-of-tree (builddir != srcdir) and run from a venv. (see also bpo-15366)

compiled out-of-tree (builddir != srcdir). (see also bpo-15366)
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@jkloth
Copy link
Contributor Author

jkloth commented May 9, 2017 via email

return base
if _sys_home:
incdir = os.path.join(_sys_home, 'Include')
return _sys_home or project_base
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling normpath() on these paths shouldn't hurt.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but just doing what was already there (and note that they are used "bare" everywhere else in the file).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I was confused by the "unified diff" view. With the "Split" view, it's better :-) Ok, your change doesn't remove any normpath() call.

@vstinner
Copy link
Member

vstinner commented May 9, 2017

Updated GitHub username on b.p.o user details (already signed the CLA)

I removed the CLA status: the CLA status was then updated properly ;-)

@vstinner vstinner requested a review from brettcannon May 9, 2017 13:07
@vstinner
Copy link
Member

vstinner commented May 9, 2017

On the coverage job, 2 tests failed (test_traceback test_xml_etree) but it doesn't seem to be related to this change?

@vstinner vstinner merged commit dbdea62 into python:master May 9, 2017
@vstinner
Copy link
Member

vstinner commented May 9, 2017

Ok, I succeeded to reproduce the bug and validate that your change fixed it. Thanks!

Would you mind to backport the change to 3.6, 3.5 and 2.7 branches please? https://docs.python.org/devguide/committing.html#backporting-changes-to-an-older-version

vstinner added a commit that referenced this pull request May 17, 2017
…1515) (#1625)

compiled out-of-tree (builddir != srcdir). (see also bpo-15366)
(cherry picked from commit dbdea62)
vstinner added a commit that referenced this pull request May 17, 2017
…1515) (#1626)

compiled out-of-tree (builddir != srcdir). (see also bpo-15366)
(cherry picked from commit dbdea62)
@Mariatta
Copy link
Member

I removed needs backport to 3.5 and 3.6 labels because they were done.
Is backport still needed for 2.7?

@vstinner
Copy link
Member

@Mariatta: " Is backport still needed for 2.7?"

I removed this label: https://bugs.python.org/issue30273#msg317067

@jkloth jkloth deleted the issue30273 branch December 11, 2018 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants