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