Skip to content

Commit 6fd2a2a

Browse files
committed
Record Python package information
1 parent cbfc531 commit 6fd2a2a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ IPYTHON = env/ipy.$(IPY_VERSION)/bin/ipython
33
IPY_VERSION = 0.13.0
44
TESTEIN = tools/testein.py
55
TESTEIN_OPTS =
6+
PKG_INFO = \
7+
grep '^Version' \
8+
env/ipy.$(IPY_VERSION)/lib/python*/site-packages/*.egg-info/PKG-INFO \
9+
| sed -r 's%.*/site-packages/(.*)-py.*\.egg-info/.*:Version: (.*)$$%\1\t\2%'
610

711
testein: test-requirements
812
${MAKE} testein-1
@@ -16,6 +20,11 @@ clean: ert-clean
1620
purge: clean
1721
rm -rf env log
1822

23+
pkg-info:
24+
@echo "**************************************************"
25+
@echo "Installed Python Packages"
26+
$(PKG_INFO)
27+
1928
submodule:
2029
git submodule update --init
2130

@@ -34,6 +43,7 @@ log:
3443
mkdir log
3544

3645
test-requirements: ert-compile env-ipy.$(IPY_VERSION)
46+
${MAKE} pkg-info
3747

3848
travis-ci-testein: test-requirements
3949
${MAKE} testein-2

0 commit comments

Comments
 (0)