Fix build in ELN
[skip changelog]
This commit is contained in:
parent
a0c7d6d2fb
commit
ddf7ecd3d8
1 changed files with 8 additions and 0 deletions
|
|
@ -107,6 +107,14 @@ sed -ri -e 's/"(packaging|filelock|platformdirs|psutil|pyproject-api|pytest|pyte
|
|||
-e 's/"(hatchling)>=.*/"\1>=1.13",/g' \
|
||||
pyproject.toml
|
||||
|
||||
%if 0%{?rhel}
|
||||
# There is no build[virtualenv] packaged in ELN
|
||||
# https://github.com/fedora-eln/eln/issues/309
|
||||
# We flatten the test depndency to build and virtualenv (already listed in runtime deps)
|
||||
sed -i 's/"build\[virtualenv\]"/"build"/' pyproject.toml
|
||||
%endif
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
|
||||
%pyproject_buildrequires -r %{?with_tests:-g test}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue