We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b33a2c commit c889643Copy full SHA for c889643
setup.py
@@ -938,6 +938,17 @@ def build_extensions(self) -> None:
938
939
self.summary_report(feature)
940
941
+ def build_extension(self, ext):
942
+ # Append the extension name (not including "PIL.") to the temp build directory
943
+ # so that each module builds to its own directory. We need to make a (shallow)
944
+ # copy of 'self' here so that we don't overwrite this value when running in
945
+ # parallel.
946
+ import copy
947
+
948
+ self_copy = copy.copy(self)
949
+ self_copy.build_temp = os.path.join(self.build_temp, ext.name[4:])
950
+ build_ext.build_extension(self_copy, ext)
951
952
def summary_report(self, feature: ext_feature) -> None:
953
print("-" * 68)
954
print("PIL SETUP SUMMARY")
0 commit comments