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

make is_standard_module() properly classify extensions #659

Merged

Conversation

markmcclain
Copy link
Contributor

@markmcclain markmcclain commented Mar 27, 2019

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

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

Steps

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

Description

Type of Changes

Type
🐛 Bug fix

Related Issue

Closes #658

@markmcclain markmcclain changed the title make is_standard_module() to properly classify extensions make is_standard_module() properly classify extensions Mar 27, 2019
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>
@PCManticore PCManticore merged commit 70ed2cf into pylint-dev:master Mar 29, 2019
@PCManticore
Copy link
Contributor

Thank you for the great patch @markmcclain !

markmcclain added a commit to markmcclain/astroid that referenced this pull request Apr 4, 2019
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 pushed a commit that referenced this pull request Apr 9, 2019
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)
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.

Extension modules incorrectly classified as belonging to stdlib.
2 participants