Title: Fix sys.implementation by joshuamegnauth54 · Pull Request #7793 · RustPython/RustPython · GitHub
Open Graph Title: Fix sys.implementation by joshuamegnauth54 · Pull Request #7793 · RustPython/RustPython
X Title: Fix sys.implementation by joshuamegnauth54 · Pull Request #7793 · RustPython/RustPython
Description: sys.version_info and sys.implementation are two different versioning schemes. version_info refers to the target Python version while implementation refers to the implementation version. For RustPython, version_info should be 3.14 because it currently targets Python 3.14. This was correct and remains unchanged. implementation, however, should be set to RustPython's version. I updated the code to correctly get RustPython's version from the environment. I also ensured values are hard coded at build time which reduces the overall code that needs to be run at runtime as well as removes some unneeded allocations. Closes: #7770 Summary by CodeRabbit Refactor Version and build metadata are now embedded at compile time, exposing implementation-specific major/minor/micro, release level, serial, hex version, git revision and build timestamp. sys._git now returns an additional git revision field. sys.implementation and reported hexversion now reflect the new implementation-specific versioning. Build script improved for more reliable git and compiler metadata extraction.
Open Graph Description: sys.version_info and sys.implementation are two different versioning schemes. version_info refers to the target Python version while implementation refers to the implementation version. For RustPyt...
X Description: sys.version_info and sys.implementation are two different versioning schemes. version_info refers to the target Python version while implementation refers to the implementation version. For RustPyt...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7793
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:83387df6-9a13-3960-fb7a-41901df21167 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ABC2:3BAF11:FC1D23:156237C:6A5F0CA6 |
| html-safe-nonce | 79d6e9ed67e9c6c55f1d04c08815928437a234f5ea4262e9ae79d9145ae4637e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkMyOjNCQUYxMTpGQzFEMjM6MTU2MjM3Qzo2QTVGMENBNiIsInZpc2l0b3JfaWQiOiI3MzIwOTEwNjQ0MTc0MDY0ODA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1bf675e816bbc257ad1cbe2d607ac673cd139e6646178110ca3aeb465bffafee |
| hovercard-subject-tag | pull_request:3638375321 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/RustPython/RustPython/pull/7793/files |
| twitter:image | https://avatars.githubusercontent.com/u/48846352?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/48846352?s=400&v=4 |
| og:image:alt | sys.version_info and sys.implementation are two different versioning schemes. version_info refers to the target Python version while implementation refers to the implementation version. For RustPyt... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | bf8fa4b42b6d150def6175efb9b0f1ec8e9628d7229ee2bdf6e850e7bdad923e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7debc3c6cd5de09c6e22b47a1b9982acb2aabb7b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width