Skip to content

Commit ca60ccb

Browse files
committed
dev 0.2.1 [ci skip]
1 parent 46e5704 commit ca60ccb

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,3 @@ repos:
3131
- id: mypy
3232
files: pillow_heif/
3333
additional_dependencies: [pillow, cffi, pytest]
34-
35-
default_language_version:
36-
python: python3.9

docs/BUILDING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ pip3 install --no-binary pillow_heif
3939
```
4040

4141
### Windows
42+
By default, build script assumes that `vcpkg` builds libs in `C:\vcpkg\installed\x64-windows`.
43+
If not, then set `VCPKG_PREFIX` environment variable to your custom path, e.g. `setx VCPKG_PREFIX "D:\vcpkg\installed\x64-windows"`
4244
```bat
4345
vcpkg install aom libheif --triplet=x64-windows
44-
VCPKG_PREFIX="path_to:vcpkg/installed/x64-windows"
4546
pip3 install --no-binary pillow_heif
4647
```
4748

libheif/build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from os import getenv, path
22
from subprocess import DEVNULL, PIPE, run
33
from sys import platform
4+
from warnings import warn
45

56
from cffi import FFI
67

@@ -35,6 +36,9 @@
3536
include_path_prefix = "/opt/local"
3637
elif platform.lower() == "win32":
3738
include_path_prefix = getenv("VCPKG_PREFIX")
39+
if include_path_prefix is None:
40+
include_path_prefix = "C:\\vcpkg\\installed\\x64-windows"
41+
warn(f"VCPKG_PREFIX environment variable is not set. Assuming `VCPKG_PREFIX={include_path_prefix}`")
3842
else:
3943
include_path_prefix = build_libs.build_libs_linux()
4044

0 commit comments

Comments
 (0)