Title: sitecustomize/full sys.path support · Issue #5701 · python/mypy · GitHub
Open Graph Title: sitecustomize/full sys.path support · Issue #5701 · python/mypy
X Title: sitecustomize/full sys.path support · Issue #5701 · python/mypy
Description: Looking at sitepkgs.py, the current implementation only looks for PEP 561 packages in site.usersitepackages() and site.getsitepackages(). My environment has a sitecustomize.py that adds additional paths to sys.path based on some in-house...
Open Graph Description: Looking at sitepkgs.py, the current implementation only looks for PEP 561 packages in site.usersitepackages() and site.getsitepackages(). My environment has a sitecustomize.py that adds additional ...
X Description: Looking at sitepkgs.py, the current implementation only looks for PEP 561 packages in site.usersitepackages() and site.getsitepackages(). My environment has a sitecustomize.py that adds additional ...
Opengraph URL: https://github.com/python/mypy/issues/5701
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sitecustomize/full sys.path support","articleBody":"Looking at sitepkgs.py, the current implementation only looks for PEP 561 packages in `site.usersitepackages()` and `site.getsitepackages()`. My environment has a sitecustomize.py that adds additional paths to `sys.path` based on some in-house env vars (not really my choice, I inherited this setup). Could we add a mypy flag to indicate that it should use the full sys.path? I don't really see a harm in including PYTHONPATH too.\r\n\r\nOn a related note, shouldnt user site packages have precedence over system site packages?","author":{"url":"https://github.com/llchan","@type":"Person","name":"llchan"},"datePublished":"2018-10-01T05:52:40Z","url":"https://github.com/python/mypy/issues/5701"}
| 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:ed125fb8-4815-0f27-79c1-a2c14cafe872 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B678:F5AA9:28B759A:37865B5:6B00496A |
| html-safe-nonce | 2694bbc26e693479fddbe6cdde30f349153e377d62208de4b024a2b76c633d6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjc4OkY1QUE5OjI4Qjc1OUE6Mzc4NjVCNTo2QjAwNDk2QSIsInZpc2l0b3JfaWQiOiI5MjIzMTgyMzkwMDc0MDM0NTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ee061c647e7aeefa44f28e54386d16046a7160d60115218d2514d5303b38f658 |
| hovercard-subject-tag | issue:365317485 |
| 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/mypy/5701/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0823e47feebac4dde5e5b297d5cd60952e2500e4d3be58dbf7f0cc72dad26c59/python/mypy/issues/5701 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0823e47feebac4dde5e5b297d5cd60952e2500e4d3be58dbf7f0cc72dad26c59/python/mypy/issues/5701 |
| og:image:alt | Looking at sitepkgs.py, the current implementation only looks for PEP 561 packages in site.usersitepackages() and site.getsitepackages(). My environment has a sitecustomize.py that adds additional ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | llchan |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width