From e842b88809a9e2949be6aa8c63dc29b152f7bb3b Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 19 Jan 2011 14:58:02 +0100 Subject: Added ethtool.version string constant This is useful to identify the python-ethtool version at runtime. Signed-off-by: David Sommerseth --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index aa56d96..bde04dc 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,8 @@ from distutils.core import setup, Extension import commands import sys +version = '0.6' + ethtool = Extension('ethtool', sources = ['python-ethtool/ethtool.c', 'python-ethtool/etherinfo.c', 'python-ethtool/etherinfo_obj.c']) @@ -49,7 +51,7 @@ libnl = pkgconfig('libnl-1') # don't reformat this line, Makefile parses it setup(name='ethtool', - version='0.2', + version=version, description='Python module to interface with ethtool', author='Harald Hoyer & Arnaldo Carvalho de Melo', author_email='acme@redhat.com', @@ -64,7 +66,8 @@ setup(name='ethtool', 'python-ethtool/etherinfo_ipv6_obj.c'], include_dirs = libnl['include'], library_dirs = libnl['libdirs'], - libraries = libnl['libs'] + libraries = libnl['libs'], + define_macros = [('VERSION', '"%s"' % version)] ) ] ) -- cgit