Skip to content

Commit

Permalink
Makefile: build pyzstd in vendored target
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jan 7, 2025
1 parent 1aabbea commit 9404d26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ umu-dist: $(OBJDIR)/.build-umu-dist
umu-dist-install: umu-dist
$(info :: Installing umu )
install -d $(DESTDIR)$(PYTHONDIR)/$(INSTALLDIR)
$(PYTHON_INTERPRETER) -m installer --destdir=$(DESTDIR) $(OBJDIR)/*.whl
$(PYTHON_INTERPRETER) -m installer --destdir=$(DESTDIR) $(OBJDIR)/umu_launcher*.whl

ifeq ($(FLATPAK), xtrue)
umu-install: umu-dist-install umu-delta-install
Expand Down Expand Up @@ -102,7 +102,7 @@ umu-launcher-install: umu-launcher-dist-install umu-launcher-bin-install
$(OBJDIR)/.build-umu-vendored: | $(OBJDIR)
$(info :: Building vendored dependencies )
python3 -m pip install urllib3 -t $(OBJDIR)
python3 -m pip install pyzstd --config-settings="--build-option=--dynamic-link-zstd" -t $(OBJDIR)
sed -i 's/setuptools>=64,<74/setuptools/' subprojects/pyzstd/pyproject.toml && python -m build --wheel --no-isolation -C=--build-option=--dynamic-link-zstd subprojects/pyzstd --outdir=$(OBJDIR)

.PHONY: umu-vendored
umu-vendored: $(OBJDIR)/.build-umu-vendored
Expand All @@ -111,7 +111,7 @@ umu-vendored-install: umu-vendored
$(info :: Installing subprojects )
install -d $(DESTDIR)$(PYTHONDIR)/umu/_vendor
cp -r $(OBJDIR)/urllib3 $(DESTDIR)$(PYTHONDIR)/umu/_vendor
cp -r $(OBJDIR)/pyzstd $(DESTDIR)$(PYTHONDIR)/umu/_vendor
$(PYTHON_INTERPRETER) -m installer --destdir=$(DESTDIR)$(PYTHONDIR)/umu/_vendor $(OBJDIR)/pyzstd*.whl && mv $(DESTDIR)$(PYTHONDIR)/umu/_vendor/$(PYTHONDIR)/pyzstd $(DESTDIR)$(PYTHONDIR)/umu/_vendor && rm -r $(DESTDIR)$(PYTHONDIR)/umu/_vendor/$(PREFIX)

$(OBJDIR):
@mkdir -p $(@)
Expand Down

0 comments on commit 9404d26

Please sign in to comment.