For Windows only. Paths and names that depend on cpu. Members: .bits 32 or 64. .windows_subdir Empty string or `x64/`. .windows_name `x86` or `x64`. .windows_config `x64` or `Win32`, e.g. for use in `/Build Rel
| 245 | |
| 246 | |
| 247 | class WindowsCpu: |
| 248 | ''' |
| 249 | For Windows only. Paths and names that depend on cpu. |
| 250 | |
| 251 | Members: |
| 252 | .bits |
| 253 | 32 or 64. |
| 254 | .windows_subdir |
| 255 | Empty string or `x64/`. |
| 256 | .windows_name |
| 257 | `x86` or `x64`. |
| 258 | .windows_config |
| 259 | `x64` or `Win32`, e.g. for use in `/Build Release|x64`. |
| 260 | .windows_suffix |
| 261 | `64` or empty string. |
| 262 | ''' |
| 263 | def __init__(self, name=None): |
| 264 | if not name: |
| 265 | name = _cpu_name() |
| 266 | self.name = name |
| 267 | if name == 'x32': |
| 268 | self.bits = 32 |
| 269 | self.windows_subdir = '' |
| 270 | self.windows_name = 'x86' |
| 271 | self.windows_config = 'Win32' |
| 272 | self.windows_suffix = '' |
| 273 | elif name == 'x64': |
| 274 | self.bits = 64 |
| 275 | self.windows_subdir = 'x64/' |
| 276 | self.windows_name = 'x64' |
| 277 | self.windows_config = 'x64' |
| 278 | self.windows_suffix = '64' |
| 279 | else: |
| 280 | assert 0, f'Unrecognised cpu name: {name}' |
| 281 | |
| 282 | def __repr__(self): |
| 283 | return self.name |
| 284 | |
| 285 | |
| 286 | class WindowsPython: |