Title: Help me to completely disable psutil · Issue #332 · python/pyperformance · GitHub
Open Graph Title: Help me to completely disable psutil · Issue #332 · python/pyperformance
X Title: Help me to completely disable psutil · Issue #332 · python/pyperformance
Description: Hello everyone, for personal needs I'm working (on a personal fork ofc) on completely removing the use of psutil when launching pyperformance. I already did it for pyperf, and I thought I'd done it for pyperformance as well but despite r...
Open Graph Description: Hello everyone, for personal needs I'm working (on a personal fork ofc) on completely removing the use of psutil when launching pyperformance. I already did it for pyperf, and I thought I'd done it...
X Description: Hello everyone, for personal needs I'm working (on a personal fork ofc) on completely removing the use of psutil when launching pyperformance. I already did it for pyperf, and I thought I'd...
Opengraph URL: https://github.com/python/pyperformance/issues/332
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Help me to completely disable psutil","articleBody":"Hello everyone, for personal needs I'm working (on a personal fork ofc) on completely removing the use of psutil when launching pyperformance. I already did it for pyperf, and I thought I'd done it for pyperformance as well but despite removing psutil from the pyperformance/venv.py when I do 'pyperformance run' or 'pyperformance venv create' it still tries to install psutil because as far as I understand it, it doesn't use the local modified installation of pyperformance and pyperf but tries to download the original ones, which of course tells it to install psutil. How can I tell the venv to use the local installations?\r\n\r\n```\r\nCreating the virtual environment /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb\r\n# /home/xbit18/.pyenv/versions/3.12.2/bin/python3.12 -m venv --without-pip /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb\r\n# /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/bin/python -m ensurepip -v\r\nUsing pip 24.0 from /tmp/tmpapjkh5y1/pip-24.0-py3-none-any.whl/pip (python 3.12)\r\nLooking in links: /tmp/tmpapjkh5y1\r\nProcessing /tmp/tmpapjkh5y1/pip-24.0-py3-none-any.whl\r\nInstalling collected packages: pip\r\n changing mode of /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/bin/pip3 to 775\r\n changing mode of /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/bin/pip3.12 to 775\r\nSuccessfully installed pip-24.0\r\n# /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/bin/python -m pip install -U 'setuptools>=18.5' wheel\r\nCollecting setuptools>=18.5\r\n Downloading setuptools-69.2.0-py3-none-any.whl.metadata (6.3 kB)\r\nCollecting wheel\r\n Downloading wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)\r\nDownloading setuptools-69.2.0-py3-none-any.whl (821 kB)\r\n ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 821.5/821.5 kB 3.4 MB/s eta 0:00:00\r\nDownloading wheel-0.43.0-py3-none-any.whl (65 kB)\r\n ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.8/65.8 kB 635.6 kB/s eta 0:00:00\r\nInstalling collected packages: wheel, setuptools\r\nSuccessfully installed setuptools-69.2.0 wheel-0.43.0\r\n# /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/bin/python -m pip --version\r\npip 24.0 from /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/lib/python3.12/site-packages/pip (python 3.12)\r\n# /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/bin/python -m ensurepip -v -U\r\nUsing pip 24.0 from /tmp/tmplckrat4v/pip-24.0-py3-none-any.whl/pip (python 3.12)\r\nLooking in links: /tmp/tmplckrat4v\r\nRequirement already satisfied: pip in ./venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/lib/python3.12/site-packages (24.0)\r\n# /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/bin/python -m pip install -U 'setuptools>=18.5' wheel\r\nRequirement already satisfied: setuptools>=18.5 in ./venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/lib/python3.12/site-packages (69.2.0)\r\nRequirement already satisfied: wheel in ./venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/lib/python3.12/site-packages (0.43.0)\r\ninstalling pyperformance in the venv at /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb\r\nInstalling requirements into the virtual environment /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb\r\n# /home/xbit18/venv/cpython3.12-2da5632e88af-compat-d933292d5dcb/bin/python -m pip install pyperformance==1.11.0\r\nCollecting pyperformance==1.11.0\r\n Downloading pyperformance-1.11.0-py3-none-any.whl.metadata (2.0 kB)\r\nCollecting pyperf (from pyperformance==1.11.0)\r\n Downloading pyperf-2.6.3-py3-none-any.whl.metadata (6.0 kB)\r\nCollecting packaging (from pyperformance==1.11.0)\r\n Downloading packaging-24.0-py3-none-any.whl.metadata (3.2 kB)\r\nCollecting psutil>=5.9.0 (from pyperf->pyperformance==1.11.0)\r\n Downloading psutil-5.9.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (21 kB)\r\n\r\n```","author":{"url":"https://github.com/xbit18","@type":"Person","name":"xbit18"},"datePublished":"2024-03-22T12:12:22Z","url":"https://github.com/python/pyperformance/issues/332"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:29ac4ec5-b50c-936b-8a68-339057490b07 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6D2:14EB6E:12EB576:18E9B19:6B01E932 |
| html-safe-nonce | 7f8741321d8894dbf0f8b77dba88bc6e7ece0d3cd89ce03c6be3df8db1591dec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkQyOjE0RUI2RToxMkVCNTc2OjE4RTlCMTk6NkIwMUU5MzIiLCJ2aXNpdG9yX2lkIjoiMjM1OTU2MDg4ODUzNDU1OTAyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e330624b9b7879eaff030495bc12255ad80158435b0b593d7f84650ef795f404 |
| hovercard-subject-tag | issue:2202357398 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/pyperformance/332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78411abbc27f9aca9511d758a1c34300774cbad53fd5a3e1a3abbf67b225a39b/python/pyperformance/issues/332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78411abbc27f9aca9511d758a1c34300774cbad53fd5a3e1a3abbf67b225a39b/python/pyperformance/issues/332 |
| og:image:alt | Hello everyone, for personal needs I'm working (on a personal fork ofc) on completely removing the use of psutil when launching pyperformance. I already did it for pyperf, and I thought I'd done it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xbit18 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/pyperformance git https://github.com/python/pyperformance.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 65949828 |
| octolytics-dimension-repository_nwo | python/pyperformance |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65949828 |
| octolytics-dimension-repository_network_root_nwo | python/pyperformance |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width