Skip to content
Snippets Groups Projects
Commit fc561be0 authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Fixed invalid path to local library when detecting project version in Makefile.

(Redmine issue: #3387)
parent de483ec4
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ FAINT = $(shell tput dim) ...@@ -40,7 +40,7 @@ FAINT = $(shell tput dim)
# verify/mark the version that is actually being built. # verify/mark the version that is actually being built.
# #
show-version: FORCE show-version: FORCE
@PYTHONPATH=. $(PYTHON) -c "import $(PROJECT_ID); print($(PROJECT_ID).__version__);" @PYTHONPATH=$(DIR_LIB) $(PYTHON) -c "import $(PROJECT_ID); print($(PROJECT_ID).__version__);"
# #
# Show information about current development environment. This may be very handy # Show information about current development environment. This may be very handy
...@@ -55,6 +55,6 @@ show-envstamp: FORCE ...@@ -55,6 +55,6 @@ show-envstamp: FORCE
@echo "Grunt version: `grunt --version | tr '\n' ','`" @echo "Grunt version: `grunt --version | tr '\n' ','`"
@echo "Psql version: `psql --version`" @echo "Psql version: `psql --version`"
@echo "Project: $(PROJECT_NAME) ($(PROJECT_ID))" @echo "Project: $(PROJECT_NAME) ($(PROJECT_ID))"
@echo "Project version: `PYTHONPATH=lib $(PYTHON) -c 'import $(PROJECT_ID); print($(PROJECT_ID).__version__);'`" @echo "Project version: `PYTHONPATH=$(DIR_LIB) $(PYTHON) -c 'import $(PROJECT_ID); print($(PROJECT_ID).__version__);'`"
@echo "Pip libraries:" @echo "Pip libraries:"
@$(PIP) freeze @$(PIP) freeze
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment