Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
daf62627
Commit
daf62627
authored
Jun 12, 2019
by
Paul Monson
Committed by
Steve Dower
Jun 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)
parent
5287022e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
3 deletions
+13
-3
Lib/distutils/_msvccompiler.py
Lib/distutils/_msvccompiler.py
+2
-0
Lib/distutils/tests/test_bdist_wininst.py
Lib/distutils/tests/test_bdist_wininst.py
+4
-0
Lib/distutils/util.py
Lib/distutils/util.py
+2
-0
Lib/sysconfig.py
Lib/sysconfig.py
+2
-0
PC/pyconfig.h
PC/pyconfig.h
+3
-3
No files found.
Lib/distutils/_msvccompiler.py
View file @
daf62627
...
...
@@ -93,6 +93,7 @@ PLAT_SPEC_TO_RUNTIME = {
'x86'
:
'x86'
,
'x86_amd64'
:
'x64'
,
'x86_arm'
:
'arm'
,
'x86_arm64'
:
'arm64'
}
def
_find_vcvarsall
(
plat_spec
):
...
...
@@ -190,6 +191,7 @@ PLAT_TO_VCVARS = {
'win32'
:
'x86'
,
'win-amd64'
:
'x86_amd64'
,
'win-arm32'
:
'x86_arm'
,
'win-arm64'
:
'x86_arm64'
}
# A set containing the DLLs that are guaranteed to be available for
...
...
Lib/distutils/tests/test_bdist_wininst.py
View file @
daf62627
"""Tests for distutils.command.bdist_wininst."""
import
sys
import
platform
import
unittest
from
test.support
import
run_unittest
from
distutils.command.bdist_wininst
import
bdist_wininst
from
distutils.tests
import
support
@
unittest
.
skipIf
(
sys
.
platform
==
'win32'
and
platform
.
machine
()
==
'ARM64'
,
'bdist_wininst is not supported in this install'
)
@
unittest
.
skipIf
(
getattr
(
bdist_wininst
,
'_unsupported'
,
False
),
'bdist_wininst is not supported in this install'
)
class
BuildWinInstTestCase
(
support
.
TempdirManager
,
...
...
Lib/distutils/util.py
View file @
daf62627
...
...
@@ -40,6 +40,8 @@ def get_host_platform():
return
'win-amd64'
if
'(arm)'
in
sys
.
version
.
lower
():
return
'win-arm32'
if
'(arm64)'
in
sys
.
version
.
lower
():
return
'win-arm64'
return
sys
.
platform
# Set for cross builds explicitly
...
...
Lib/sysconfig.py
View file @
daf62627
...
...
@@ -628,6 +628,8 @@ def get_platform():
return
'win-amd64'
if
'(arm)'
in
sys
.
version
.
lower
():
return
'win-arm32'
if
'(arm64)'
in
sys
.
version
.
lower
():
return
'win-arm64'
return
sys
.
platform
if
os
.
name
!=
"posix"
or
not
hasattr
(
os
,
'uname'
):
...
...
PC/pyconfig.h
View file @
daf62627
...
...
@@ -122,13 +122,13 @@ WIN32 is still required for the locale module.
#if defined(_M_X64) || defined(_M_AMD64)
#if defined(__INTEL_COMPILER)
#define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
#elif defined(_M_ARM64)
#define COMPILER _Py_PASTE_VERSION("64 bit (ARM)")
#define PYD_PLATFORM_TAG "win_arm64"
#else
#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
#endif
/* __INTEL_COMPILER */
#define PYD_PLATFORM_TAG "win_amd64"
#elif defined(_M_ARM64)
#define COMPILER _Py_PASTE_VERSION("64 bit (ARM64)")
#define PYD_PLATFORM_TAG "win_arm64"
#else
#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment