Makefile: Fix PACKAGE_VERSION extraction
authorW. Trevor King <wking@tremily.us>
Sat, 22 Feb 2014 19:37:36 +0000 (11:37 -0800)
committerBrian Dolbec <dolsen@gentoo.org>
Sat, 22 Feb 2014 21:43:18 +0000 (13:43 -0800)
commitf35597df0a9fe361e8d95fb8d1e53b887c95c96f
treeac5199098b337dbeb89c10eed0279d6300ff4cda
parent46b261e967904262245c42322a96f0d7f2322a27
Makefile: Fix PACKAGE_VERSION extraction

The old method grepped for __version__ in catalyst.  That broke with
24c5352 (Initial rearrangement of the python directories, 2013-01-10),
which moved catalyst to bin/catalyst, kept the __version__ in
bin/catalyst, and added a new __version__ in catalyst/main.py.  Then
46b261e (setup.py: Add disutils-based packaging, 2013-06-05)
consolidated the __version__ definitions in catalyst/__init__.py,
removing them from bin/catalyst and catalyst/main.py.  This patch
adjusts the Makefile, invoking Python to extract catalyst.__version__
instead of grepping through the file that defines it.
Makefile