mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-19 12:42:27 +03:00
use a different temp build dir for each module
This commit is contained in:
parent
3b33a2c1bb
commit
c889643b7e
11
setup.py
11
setup.py
|
@ -938,6 +938,17 @@ class pil_build_ext(build_ext):
|
||||||
|
|
||||||
self.summary_report(feature)
|
self.summary_report(feature)
|
||||||
|
|
||||||
|
def build_extension(self, ext):
|
||||||
|
# Append the extension name (not including "PIL.") to the temp build directory
|
||||||
|
# so that each module builds to its own directory. We need to make a (shallow)
|
||||||
|
# copy of 'self' here so that we don't overwrite this value when running in
|
||||||
|
# parallel.
|
||||||
|
import copy
|
||||||
|
|
||||||
|
self_copy = copy.copy(self)
|
||||||
|
self_copy.build_temp = os.path.join(self.build_temp, ext.name[4:])
|
||||||
|
build_ext.build_extension(self_copy, ext)
|
||||||
|
|
||||||
def summary_report(self, feature: ext_feature) -> None:
|
def summary_report(self, feature: ext_feature) -> None:
|
||||||
print("-" * 68)
|
print("-" * 68)
|
||||||
print("PIL SETUP SUMMARY")
|
print("PIL SETUP SUMMARY")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user