diff --git a/python-pillow.spec b/python-pillow.spec index 3ac0beb..99aaf56 100644 --- a/python-pillow.spec +++ b/python-pillow.spec @@ -1,5 +1,5 @@ -%global py3_incdir %(python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())') -%global py3_libbuilddir %(python3 -c 'import sys; import sysconfig; print("lib.{p}-{v[0]}.{v[1]}".format(p=sysconfig.get_platform(), v=sys.version_info))') +%global py3_incdir %(RPM_BUILD_ROOT= %{python3} -Ic 'import sysconfig; print(sysconfig.get_path("include"))') +%global py3_libbuilddir lib.%{python3_platform}-%{python3_version} %global srcname pillow # EPEL9 is missing some dependencies to build the documentation