Fix for Python 3.10

This commit is contained in:
Hugo 2019-08-18 12:32:23 +03:00
parent cb7d8d622a
commit cd99deff1e

View File

@ -432,7 +432,9 @@ class pil_build_ext(build_ext):
# pythonX.Y.dll.a is in the /usr/lib/pythonX.Y/config directory
_add_directory(
library_dirs,
os.path.join("/usr/lib", "python%s" % sys.version[:3], "config"),
os.path.join(
"/usr/lib", "python{}.{}".format(*sys.version_info), "config"
),
)
elif sys.platform == "darwin":