Skip to content

Commit

Permalink
Use specific python to build
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianVollmer committed Jan 20, 2025
1 parent 20445da commit a95dc3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ PYTHON ?= python3

hashcathelper.pyz: hashcathelper/
@$(eval TEMP_DIR := $(shell mktemp -d --suffix=.hashcathelper))
@$(eval GIT_HASH := $(shell git rev-parse --short HEAD))
$(PYTHON) -m pip install . --upgrade --target "${TEMP_DIR}"
@sed -i -E "s/'([0-9.]*)'/'\1-$(GIT_HASH)'/" ${TEMP_DIR}/hashcathelper/_meta.py
@$(PYTHON) -m zipapp "${TEMP_DIR}" -m hashcathelper.__main__:main -p '/usr/bin/env python3' --output hashcathelper.pyz
@$(PYTHON) -m zipapp "${TEMP_DIR}" -m hashcathelper.__main__:main -p '/usr/bin/env $(PYTHON)' --output hashcathelper.pyz
@rm -rf "${TEMP_DIR}"

clean:
Expand Down

0 comments on commit a95dc3d

Please sign in to comment.