File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,13 @@ mod sys {
262262 version:: get_version ( )
263263 }
264264
265+ #[ cfg( windows) ]
266+ #[ pyattr]
267+ fn winver ( _vm : & VirtualMachine ) -> String {
268+ // Note: This is Python DLL version in CPython, but we arbitrary fill it for compatibility
269+ version:: get_winver_number ( )
270+ }
271+
265272 #[ pyattr]
266273 fn _xoptions ( vm : & VirtualMachine ) -> PyDictRef {
267274 let ctx = & vm. ctx ;
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ pub fn get_version_number() -> String {
2828 format ! ( "{MAJOR}.{MINOR}.{MICRO}{RELEASELEVEL}" )
2929}
3030
31+ pub fn get_winver_number ( ) -> String {
32+ format ! ( "{MAJOR}.{MINOR}" )
33+ }
34+
3135pub fn get_compiler ( ) -> String {
3236 format ! ( "rustc {}" , env!( "RUSTC_VERSION" ) )
3337}
You can’t perform that action at this time.
0 commit comments