Skip to content

AppVeyor: don't download huge pillow-depends.zip #7407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 24, 2023
Prev Previous commit
Next Next commit
Capitalise constants
  • Loading branch information
hugovk committed Sep 18, 2023
commit cf79e2c3d3f2c3ef743776707cd79ec36657d946
14 changes: 7 additions & 7 deletions winbuild/build_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ def cmd_msbuild(

SF_PROJECTS = "https://sourceforge.net/projects"

architectures = {
ARCHITECTURES = {
"x86": {"vcvars_arch": "x86", "msbuild_arch": "Win32"},
"x64": {"vcvars_arch": "x86_amd64", "msbuild_arch": "x64"},
"ARM64": {"vcvars_arch": "x86_arm64", "msbuild_arch": "ARM64"},
}

# dependencies, listed in order of compilation
deps = {
DEPS = {
"libjpeg": {
"url": SF_PROJECTS
+ "/libjpeg-turbo/files/3.0.0/libjpeg-turbo-3.0.0.tar.gz/download",
Expand Down Expand Up @@ -530,7 +530,7 @@ def build_env() -> None:


def build_dep(name: str) -> str:
dep = deps[name]
dep = DEPS[name]
dir = dep["dir"]
file = f"build_dep_{name}.cmd"

Expand Down Expand Up @@ -581,7 +581,7 @@ def build_dep(name: str) -> str:

def build_dep_all() -> None:
lines = [r'call "{build_dir}\build_env.cmd"']
for dep_name in deps:
for dep_name in DEPS:
print()
if dep_name in disabled:
print(f"Skipping disabled dependency {dep_name}")
Expand Down Expand Up @@ -627,7 +627,7 @@ def build_dep_all() -> None:
)
parser.add_argument(
"--architecture",
choices=architectures,
choices=ARCHITECTURES,
default=os.environ.get(
"ARCHITECTURE",
(
Expand Down Expand Up @@ -659,7 +659,7 @@ def build_dep_all() -> None:
)
args = parser.parse_args()

arch_prefs = architectures[args.architecture]
arch_prefs = ARCHITECTURES[args.architecture]
print("Target architecture:", args.architecture)

msvs = find_msvs()
Expand Down Expand Up @@ -718,7 +718,7 @@ def build_dep_all() -> None:
# TODO find NASM automatically
}

for k, v in deps.items():
for k, v in DEPS.items():
prefs[f"dir_{k}"] = os.path.join(sources_dir, v["dir"])

print()
Expand Down