FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix _is_dev_install by using importlib.metadata API by diegorusso · Pull Request #371 · python/pyperformance · GitHub

Repository navigation

Fix _is_dev_install by using importlib.metadata API - #371

Merged
mdboom merged 1 commit into
python:mainfrom
diegorusso:is_devel_install
Nov 26, 2024
Merged

mdboom merged 1 commit into
python:mainfrom
diegorusso:is_devel_install

Conversation

Copy link
Copy Markdown
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.

mdboom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

mdboom merged commit 008b5e3 into python:main Nov 26, 2024

FFY00 commented Nov 26, 2024

Copy link
Copy Markdown
Member

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

diegorusso deleted the is_devel_install branch November 27, 2024 09:39

Copy link
Copy Markdown
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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL