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

backport: make is_standard_module() properly classify extensions (#659) #661

Merged
merged 1 commit into from
Apr 9, 2019

Conversation

markmcclain
Copy link
Contributor

Extensions can be installed in either a platform independent or specific
location[1]. The search is updated to include both paths. Previously, an
extension in the platform specific location would be misclassified because
only the independent location was considered and the platform specific location
shared a prefix with the standard lib.

[1] http://docs.python.org/3/distutils/apiref.html#distutils.sysconfig.get_python_lib

Fixes Issue: #658
Co-authored-by: Matt Story s.matt.story@gmail.com

(cherry picked from commit 70ed2cf)

Steps

  • [ X] For new features or bug fixes, add a ChangeLog entry describing what your PR does.
  • [ X] Write a good description on what the PR does.

Description

Type of Changes

Type
🐛 Bug fix

Related Issue

Extensions can be installed in either a platform independent or specific
location[1]. The search is updated to include both paths. Previously, an
extension in the platform specific location would be misclassified because
only the independent location was considered and the platform specific location
shared a prefix with the standard lib.

[1] http://docs.python.org/3/distutils/apiref.html#distutils.sysconfig.get_python_lib

Fixes Issue: pylint-dev#658
Co-authored-by: Matt Story <s.matt.story@gmail.com>

(cherry picked from commit 70ed2cf)
@PCManticore PCManticore merged commit 3d797a3 into pylint-dev:1.6 Apr 9, 2019
@PCManticore
Copy link
Contributor

Thank you @markmcclain

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.

2 participants