Skip to content

Commit

Permalink
repair version parsing from Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Behnel committed Aug 10, 2017
1 parent 544f506 commit 749df8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PYTHON?=python
PYTHON3?=python3
SETUPFLAGS=
PACKAGENAME=fastrlock
VERSION=$(shell python -c 'import re; f=open("setup.py"); print(re.search("VERSION\s*=\s*(.+)", f.read()).group(1).strip("\x27")); f.close()')
VERSION=$(shell python -c 'import re; f=open("fastrlock/__init__.py"); print(re.search("__version__\s*=\s*[\x27\x22](.+)[\x27\x22]", f.read()).group(1)); f.close()')

PYTHON_WITH_CYTHON=$(shell $(PYTHON) -c 'import Cython.Compiler' >/dev/null 2>/dev/null && echo " --with-cython" || true)
PY3_WITH_CYTHON=$(shell $(PYTHON3) -c 'import Cython.Compiler' >/dev/null 2>/dev/null && echo " --with-cython" || true)
Expand Down

0 comments on commit 749df8a

Please sign in to comment.