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

Fix _is_dev_install by using importlib.metadata API #371

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

diegorusso
Copy link
Contributor

Instead of checking the presence of files in the filesystem, use the importlib.metadata API to check if the installation is in editable mode.
Fix related to #319

Instead of checking the presence of files in the filesystem, use the
importlib.metadata API to check if the installation is in editable mode.
Copy link
Contributor

@mdboom mdboom left a comment

Choose a reason for hiding this comment

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

LGTM

@mdboom mdboom merged commit 008b5e3 into python:main Nov 26, 2024
13 checks passed
@FFY00
Copy link
Member

FFY00 commented Nov 26, 2024

This relies on the assumption the build system implements PEP 610, but that's reasonable.

@diegorusso diegorusso deleted the is_devel_install branch November 27, 2024 09:39
@diegorusso
Copy link
Contributor Author

@FFY00 that's correct! I thought using a more standard way to do it. Anyway this check is very specific to pyperformance and it is not generic for a random package, so it should be pretty safe to use it.

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.

3 participants