Skip to content

Commit

Permalink
Merge pull request #94 from ZLLentz/fix_pytmc_distutils
Browse files Browse the repository at this point in the history
FIX: evaluate pytmc dynamic version to str before passing to distutils
  • Loading branch information
klauer authored Apr 13, 2023
2 parents fc8a48a + eb2d318 commit 98b6bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iocBoot/templates/Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ help:


_check_versions:
@python -c "import sys, pytmc, distutils.version; print('* Found pytmc v', pytmc.__version__); sys.exit(not (distutils.version.LooseVersion(pytmc.__version__) >= distutils.version.LooseVersion('$(PYTMC_MIN_VERSION)')))" || (echo "A newer pytmc is required: >= $(PYTMC_MIN_VERSION)" 2> /dev/null && exit 1)
@python -c "import sys, pytmc, distutils.version; print('* Found pytmc v', pytmc.__version__); sys.exit(not (distutils.version.LooseVersion(str(pytmc.__version__)) >= distutils.version.LooseVersion('$(PYTMC_MIN_VERSION)')))" || (echo "A newer pytmc is required: >= $(PYTMC_MIN_VERSION)" 2> /dev/null && exit 1)

st.cmd: _check_versions
@echo "Executing pytmc template: creating st.cmd and database files..."
Expand Down

0 comments on commit 98b6bbd

Please sign in to comment.