Fix bug in install target

This commit is contained in:
Sylvain Tricot 2019-11-18 00:37:34 +01:00
parent 9c4b3320e4
commit 9222f5c9d2
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
MAKESELF:=makeself MAKESELF:=makeself
LICENSE:=$(shell cat ./license.txt) LICENSE:=$(shell cat ./license.txt)
#VERSION:=$(shell cd src && python -c "import msspec; print(msspec.__version__)") #VERSION:=$(shell cd src && python -c "import msspec; print(msspec.__version__)")
VERSION:=$(shell git describe|sed 's/-\([[:digit:]]\+\)-.*/post\1/') VERSION:=$(shell git describe|sed 's/-\([[:digit:]]\+\)-.*/\.post\1/')
SETUPFILE:=pymsspec-$(VERSION).setup SETUPFILE:=pymsspec-$(VERSION).setup
.PHONY: clean purge version .PHONY: clean purge version
@ -24,6 +24,6 @@ selfex: purge
@echo "Creating the self-extractible setup program... " @echo "Creating the self-extractible setup program... "
@cp ./src/msspec/version.py ./src/msspec/version.py.bak @cp ./src/msspec/version.py ./src/msspec/version.py.bak
@echo "__version__ = \"$(VERSION)\"" > ./src/msspec/version.py @echo "__version__ = \"$(VERSION)\"" > ./src/msspec/version.py
$(MAKESELF) --license "$(LICENSE)" ./src $(SETUPFILE) "Python MsSpec" ./install.sh $(MAKESELF) --license ./license.txt --notemp ./src $(SETUPFILE) "Python MsSpec" ./install.sh
@mv ./src/msspec/version.py.bak ./src/msspec/version.py @mv ./src/msspec/version.py.bak ./src/msspec/version.py