mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-13 13:54:12 +03:00
Merge ceaf4496fd
into cda26be10e
This commit is contained in:
commit
7d90c66107
13
setup.py
13
setup.py
|
@ -14,6 +14,7 @@ import shutil
|
|||
import struct
|
||||
import subprocess
|
||||
import sys
|
||||
import sysconfig
|
||||
import warnings
|
||||
from collections.abc import Iterator
|
||||
from typing import Any
|
||||
|
@ -552,8 +553,16 @@ class pil_build_ext(build_ext):
|
|||
for d in os.environ[k].split(os.path.pathsep):
|
||||
_add_directory(library_dirs, d)
|
||||
|
||||
_add_directory(library_dirs, os.path.join(sys.prefix, "lib"))
|
||||
_add_directory(include_dirs, os.path.join(sys.prefix, "include"))
|
||||
_add_directory(
|
||||
library_dirs,
|
||||
(sys.prefix == sys.base_prefix and sysconfig.get_config_var("LIBDIR"))
|
||||
or os.path.join(sys.prefix, "lib"),
|
||||
)
|
||||
_add_directory(
|
||||
include_dirs,
|
||||
(sys.prefix == sys.base_prefix and sysconfig.get_config_var("INCLUDEDIR"))
|
||||
or os.path.join(sys.prefix, "include"),
|
||||
)
|
||||
|
||||
#
|
||||
# add platform directories
|
||||
|
|
Loading…
Reference in New Issue
Block a user