mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Merge ceaf4496fd
into 329d6a6a62
This commit is contained in:
commit
c43997aeb3
13
setup.py
13
setup.py
|
@ -14,6 +14,7 @@ import shutil
|
||||||
import struct
|
import struct
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
import sysconfig
|
||||||
import warnings
|
import warnings
|
||||||
from collections.abc import Iterator
|
from collections.abc import Iterator
|
||||||
|
|
||||||
|
@ -565,8 +566,16 @@ class pil_build_ext(build_ext):
|
||||||
for d in os.environ[k].split(os.path.pathsep):
|
for d in os.environ[k].split(os.path.pathsep):
|
||||||
_add_directory(library_dirs, d)
|
_add_directory(library_dirs, d)
|
||||||
|
|
||||||
_add_directory(library_dirs, os.path.join(sys.prefix, "lib"))
|
_add_directory(
|
||||||
_add_directory(include_dirs, os.path.join(sys.prefix, "include"))
|
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
|
# add platform directories
|
||||||
|
|
Loading…
Reference in New Issue
Block a user