Blame macros.pyproject

162b0ca
%pyproject_wheel() %{expand:\\\
162b0ca
	CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \\\
162b0ca
	%{__python3} -m pip wheel --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --progress-bar off --verbose .
162b0ca
}
162b0ca
162b0ca
162b0ca
%pyproject_install() %{expand:\\\
162b0ca
%{__python3} -m pip install   --root %{buildroot}  --strip-file-prefix %{buildroot} --no-deps  --disable-pip-version-check --progress-bar off --verbose --ignore-installed ./*.whl
253976c
if [ -e %{buildroot}%{_bindir} ]; then
253976c
  pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
162b0ca
fi
253976c
if [ -e %{buildroot}%{python3_sitelib}]; then
253976c
  sed -i -e 's/pip/rpm/g' %{buildroot}%{python3_sitelib}/*.dist-info/INSTALLER
253976c
fi
253976c
if [ -e %{buildroot}{python3_sitearch}]; then
253976c
  sed -i -e 's/pip/rpm/g' %{buildroot}%{python3_sitearch}/*.dist-info/INSTALLER
162b0ca
fi
162b0ca
}