mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
rename x64 to AMD64 in winbuild/build_prepare.py
This commit is contained in:
parent
aa21a2e6eb
commit
2dd00de1f3
|
@ -14,7 +14,7 @@ environment:
|
||||||
ARCHITECTURE: x86
|
ARCHITECTURE: x86
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
|
||||||
- PYTHON: C:/Python38-x64
|
- PYTHON: C:/Python38-x64
|
||||||
ARCHITECTURE: x64
|
ARCHITECTURE: AMD64
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
||||||
|
|
||||||
|
|
||||||
|
|
17
.github/workflows/wheels.yml
vendored
17
.github/workflows/wheels.yml
vendored
|
@ -81,18 +81,15 @@ jobs:
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
name: Windows ${{ matrix.arch }}
|
name: Windows ${{ matrix.cibw_arch }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- arch: x86
|
- cibw_arch: x86
|
||||||
cibw_arch: x86
|
- cibw_arch: AMD64
|
||||||
- arch: x64
|
- cibw_arch: ARM64
|
||||||
cibw_arch: AMD64
|
|
||||||
- arch: ARM64
|
|
||||||
cibw_arch: ARM64
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -116,7 +113,7 @@ jobs:
|
||||||
|
|
||||||
& python.exe -m pip install -r .ci/requirements-cibw.txt
|
& python.exe -m pip install -r .ci/requirements-cibw.txt
|
||||||
|
|
||||||
& python.exe winbuild\build_prepare.py -v --no-imagequant --architecture=${{ matrix.arch }}
|
& python.exe winbuild\build_prepare.py -v --no-imagequant --architecture=${{ matrix.cibw_arch }}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels
|
||||||
|
@ -157,13 +154,13 @@ jobs:
|
||||||
- name: Upload wheels
|
- name: Upload wheels
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: dist-windows-${{ matrix.arch }}
|
name: dist-windows-${{ matrix.cibw_arch }}
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
|
|
||||||
- name: Upload fribidi.dll
|
- name: Upload fribidi.dll
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: fribidi-windows-${{ matrix.arch }}
|
name: fribidi-windows-${{ matrix.cibw_arch }}
|
||||||
path: winbuild\build\bin\fribidi*
|
path: winbuild\build\bin\fribidi*
|
||||||
|
|
||||||
sdist:
|
sdist:
|
||||||
|
|
|
@ -27,7 +27,7 @@ Download and install:
|
||||||
* `Ninja <https://ninja-build.org/>`_
|
* `Ninja <https://ninja-build.org/>`_
|
||||||
(optional, use ``--nmake`` if not available; bundled in Visual Studio CMake component)
|
(optional, use ``--nmake`` if not available; bundled in Visual Studio CMake component)
|
||||||
|
|
||||||
* x86/x64: `Netwide Assembler (NASM) <https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D>`_
|
* x86/AMD64: `Netwide Assembler (NASM) <https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D>`_
|
||||||
|
|
||||||
Any version of Visual Studio 2017 or newer should be supported,
|
Any version of Visual Studio 2017 or newer should be supported,
|
||||||
including Visual Studio 2017 Community, or Build Tools for Visual Studio 2019.
|
including Visual Studio 2017 Community, or Build Tools for Visual Studio 2019.
|
||||||
|
@ -42,7 +42,7 @@ Run ``build_prepare.py`` to configure the build::
|
||||||
|
|
||||||
usage: winbuild\build_prepare.py [-h] [-v] [-d PILLOW_BUILD]
|
usage: winbuild\build_prepare.py [-h] [-v] [-d PILLOW_BUILD]
|
||||||
[--depends PILLOW_DEPS]
|
[--depends PILLOW_DEPS]
|
||||||
[--architecture {x86,x64,ARM64}] [--nmake]
|
[--architecture {x86,AMD64,ARM64}] [--nmake]
|
||||||
[--no-imagequant] [--no-fribidi]
|
[--no-imagequant] [--no-fribidi]
|
||||||
|
|
||||||
Download and generate build scripts for Pillow dependencies.
|
Download and generate build scripts for Pillow dependencies.
|
||||||
|
@ -55,7 +55,7 @@ Run ``build_prepare.py`` to configure the build::
|
||||||
--depends PILLOW_DEPS
|
--depends PILLOW_DEPS
|
||||||
directory used to store cached dependencies (default:
|
directory used to store cached dependencies (default:
|
||||||
'winbuild\depends')
|
'winbuild\depends')
|
||||||
--architecture {x86,x64,ARM64}
|
--architecture {x86,AMD64,ARM64}
|
||||||
build architecture (default: same as host Python)
|
build architecture (default: same as host Python)
|
||||||
--nmake build dependencies using NMake instead of Ninja
|
--nmake build dependencies using NMake instead of Ninja
|
||||||
--no-imagequant skip GPL-licensed optional dependency libimagequant
|
--no-imagequant skip GPL-licensed optional dependency libimagequant
|
||||||
|
|
|
@ -105,7 +105,7 @@ SF_PROJECTS = "https://sourceforge.net/projects"
|
||||||
|
|
||||||
ARCHITECTURES = {
|
ARCHITECTURES = {
|
||||||
"x86": {"vcvars_arch": "x86", "msbuild_arch": "Win32"},
|
"x86": {"vcvars_arch": "x86", "msbuild_arch": "Win32"},
|
||||||
"x64": {"vcvars_arch": "x86_amd64", "msbuild_arch": "x64"},
|
"AMD64": {"vcvars_arch": "x86_amd64", "msbuild_arch": "x64"},
|
||||||
"ARM64": {"vcvars_arch": "x86_arm64", "msbuild_arch": "ARM64"},
|
"ARM64": {"vcvars_arch": "x86_arm64", "msbuild_arch": "ARM64"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -651,7 +651,7 @@ if __name__ == "__main__":
|
||||||
(
|
(
|
||||||
"ARM64"
|
"ARM64"
|
||||||
if platform.machine() == "ARM64"
|
if platform.machine() == "ARM64"
|
||||||
else ("x86" if struct.calcsize("P") == 4 else "x64")
|
else ("x86" if struct.calcsize("P") == 4 else "AMD64")
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
help="build architecture (default: same as host Python)",
|
help="build architecture (default: same as host Python)",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user