Skip to content

Commit

Permalink
expand calls pyproject* macros (revert #45)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnavigator committed Jun 23, 2020
1 parent 3ea9b62 commit 845439f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions macros/010-common-defs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,15 @@
local args = rpm.expand("%**"); \
local intro = "%{python_expand $python -mpip wheel --no-deps %{?py_setup_args:--build-option %{py_setup_args}}"; \
intro = intro .. " --use-pep517 --no-build-isolation --progress-bar off --verbose . "; \
print(intro .. args .. "}") \
print(rpm.expand(intro .. args .. "}")) \
}

# No such option: --strip-file-prefix %%{buildroot}
%pyproject_install(+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-=) %{lua:\
local args = rpm.expand("%**"); \
local intro = "%{python_expand $python -mpip install --root %{buildroot} --no-compile --no-deps --progress-bar off *.whl "; \
print(intro .. args .. "}") \
local broot = rpm.expand("--root %buildroot"); \
local intro = "%{python_expand $python -mpip install " .. broot .. " --no-compile --no-deps --progress-bar off *.whl "; \
print(rpm.expand(intro .. args .. "}")) \
}

#vi:tw=0 nowrap:

0 comments on commit 845439f

Please sign in to comment.