René's URL Explorer Experiment


Title: Editable installation isn't working properly · Issue #319 · python/pyperformance · GitHub

Open Graph Title: Editable installation isn't working properly · Issue #319 · python/pyperformance

X Title: Editable installation isn't working properly · Issue #319 · python/pyperformance

Description: If pyperformance is installed as editable pip install -e . from the git repository, it doesn't work when invoked $ /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance ERROR: pyperformance should not be run without installing first (consid...

Open Graph Description: If pyperformance is installed as editable pip install -e . from the git repository, it doesn't work when invoked $ /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance ERROR: pyperformance should not...

X Description: If pyperformance is installed as editable pip install -e . from the git repository, it doesn't work when invoked $ /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance ERROR: pyperformance should...

Opengraph URL: https://github.com/python/pyperformance/issues/319

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Editable installation isn't working properly","articleBody":"If pyperformance is installed as editable `pip install -e .` from the git repository, it doesn't work when invoked\r\n\r\n```\r\n$ /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance                                        \r\nERROR: pyperformance should not be run without installing first                                                                         \r\n(consider using the dev.py script)             \r\n```\r\n\r\nThe check is done by[ is_installed()](https://github.com/python/pyperformance/blob/main/pyperformance/__init__.py#L13C5-L13C17) which calls both `_is_dev()` and `_is_devel_install()` which are both broken.\r\n\r\nThe function [is_dev()](https://github.com/python/pyperformance/blob/main/pyperformance/__init__.py#L21) bases the logic on the presence of `setup.py`  which is long gone.\r\n\r\nThe function [_is_devel_install()](https://github.com/python/pyperformance/blob/main/pyperformance/__init__.py#L32) instead check the presence of `pyperformance.egg-link` in the site-packages.\r\n\r\nIn my installation I have:\r\n* `pyperformance.egg-info` directory in the git repository\r\n*  `__editable___pyperformance_1_0_9_finder.py`, `__editable__.pyperformance-1.0.9.pth`, `pyperformance-1.0.9.dist-info` in the site-packages\r\n\r\nI'm trying to invoke pyperformance using a dev instance via \r\n\r\n```\r\npython3.12 /work/oss/repos/pyperformance/dev.py compile_all benchmark.conf\r\n```\r\nand it will fail eventually:\r\n\r\n```\r\n2023-10-19 15:25:52,049: Building wheels for collected packages: pyperformance                                                                                                                                                                                                   \r\n2023-10-19 15:25:52,050:   Building editable for pyperformance (pyproject.toml): started                                                                                                                                                                                         \r\n2023-10-19 15:25:52,885:   Building editable for pyperformance (pyproject.toml): finished with status 'done'                                                                                                                                                                     \r\n2023-10-19 15:25:52,888:   Created wheel for pyperformance: filename=pyperformance-1.0.9-0.editable-py3-none-any.whl size=6710 sha256=159fbc3f13ae47399e04d5f7cdf5e024c3652b2ed91096f8638844238e005c0d                                                                           \r\n2023-10-19 15:25:52,888:   Stored in directory: /tmp/pip-ephem-wheel-cache-ubyuatck/wheels/0d/04/cb/add3bede8e376e8789c834f334f1834467606bde2625d5a4ad                                                                                                                           \r\n2023-10-19 15:25:52,896: Successfully built pyperformance                                                                                                                                                                                                                        \r\n2023-10-19 15:25:52,922: Installing collected packages: psutil, packaging, pyperf, pyperformance                                                                                                                                                                                 \r\n2023-10-19 15:25:53,307: Successfully installed packaging-23.2 psutil-5.9.6 pyperf-2.6.1 pyperformance-1.0.9                                                                                                                                                                     \r\n2023-10-19 15:25:53,437: + /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance venv recreate --venv /tmp/tmpdir/venv --benchmarks '\u003cNONE\u003e'                                                                                                                                        \r\n2023-10-19 15:25:53,514: ERROR: pyperformance should not be run without installing first                                                                                                                                                                                         \r\n2023-10-19 15:25:53,515: (consider using the dev.py script)                                                                                                                                                                                                                      \r\n2023-10-19 15:25:53,523: Command /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance venv recreate --venv /tmp/tmpdir/venv --benchmarks '\u003cNONE\u003e' failed with exit code 1                                                                                                          \r\n2023-10-19 15:25:53,565: Command /work/oss/ENTLLT-6897/venv3.12/bin/python -m pyperformance compile /work/oss/repos/ci-scripts/projects/python/benchmark.conf be5e8a010341c4d2d28ef53a1baed402ee06466e main --no-update --no-tune failed with exit code 11                       \r\n2023-10-19 15:25:53,565: Benchmark exit code: 11                                                                                                                                                                                                                                 \r\n2023-10-19 15:25:53,566: FAILED: main-be5e8a010341c4d2d28ef53a1baed402ee06466e \r\n```","author":{"url":"https://github.com/diegorusso","@type":"Person","name":"diegorusso"},"datePublished":"2023-10-19T16:54:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/319/pyperformance/issues/319"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:38db3f29-357e-3e8f-f38e-2690b3e54718
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8E6C:137035:1369E35:1B2EB70:696A34AC
html-safe-nonced00f4f01fb86eaceba7ad3655d37d12e161ebd9d78d848370b2a7d31aa51961f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTZDOjEzNzAzNToxMzY5RTM1OjFCMkVCNzA6Njk2QTM0QUMiLCJ2aXNpdG9yX2lkIjoiNzE4NzUyMDQzMTgwMTkwNjM0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7cf87d25e81c81eb5181deb41625e9fba5035219dd3ce4210044da7daf13ef4f
hovercard-subject-tagissue:1952697718
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/pyperformance/319/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2f893b3bf088d22e270cbd5d0b8b434db225e22ba273cd58614ca3e2d2f4b28f/python/pyperformance/issues/319
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2f893b3bf088d22e270cbd5d0b8b434db225e22ba273cd58614ca3e2d2f4b28f/python/pyperformance/issues/319
og:image:altIf pyperformance is installed as editable pip install -e . from the git repository, it doesn't work when invoked $ /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance ERROR: pyperformance should not...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamediegorusso
hostnamegithub.com
expected-hostnamegithub.com
None321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538
turbo-cache-controlno-preview
go-importgithub.com/python/pyperformance git https://github.com/python/pyperformance.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id65949828
octolytics-dimension-repository_nwopython/pyperformance
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id65949828
octolytics-dimension-repository_network_root_nwopython/pyperformance
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/pyperformance/issues/319#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpyperformance%2Fissues%2F319
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpyperformance%2Fissues%2F319
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fpyperformance
Reloadhttps://github.com/python/pyperformance/issues/319
Reloadhttps://github.com/python/pyperformance/issues/319
Reloadhttps://github.com/python/pyperformance/issues/319
python https://github.com/python
pyperformancehttps://github.com/python/pyperformance
Please reload this pagehttps://github.com/python/pyperformance/issues/319
Notifications https://github.com/login?return_to=%2Fpython%2Fpyperformance
Fork 200 https://github.com/login?return_to=%2Fpython%2Fpyperformance
Star 974 https://github.com/login?return_to=%2Fpython%2Fpyperformance
Code https://github.com/python/pyperformance
Issues 45 https://github.com/python/pyperformance/issues
Pull requests 25 https://github.com/python/pyperformance/pulls
Actions https://github.com/python/pyperformance/actions
Projects 0 https://github.com/python/pyperformance/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/pyperformance/security
Please reload this pagehttps://github.com/python/pyperformance/issues/319
Insights https://github.com/python/pyperformance/pulse
Code https://github.com/python/pyperformance
Issues https://github.com/python/pyperformance/issues
Pull requests https://github.com/python/pyperformance/pulls
Actions https://github.com/python/pyperformance/actions
Projects https://github.com/python/pyperformance/projects
Security https://github.com/python/pyperformance/security
Insights https://github.com/python/pyperformance/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/pyperformance/issues/319
New issuehttps://github.com/login?return_to=https://github.com/python/pyperformance/issues/319
Editable installation isn't working properlyhttps://github.com/python/pyperformance/issues/319#top
https://github.com/diegorusso
https://github.com/diegorusso
diegorussohttps://github.com/diegorusso
on Oct 19, 2023https://github.com/python/pyperformance/issues/319#issue-1952697718
is_installed()https://github.com/python/pyperformance/blob/main/pyperformance/__init__.py#L13C5-L13C17
is_dev()https://github.com/python/pyperformance/blob/main/pyperformance/__init__.py#L21
_is_devel_install()https://github.com/python/pyperformance/blob/main/pyperformance/__init__.py#L32
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.