From 5bd9a1f5d7008b64b9edff064dbe85597e6b6868 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Tue, 23 Feb 2010 00:27:50 +0100 Subject: Add pkg_resources to dependency list Signed-off-by: Michael Buesch --- README | 1 + libtoprammer/bitfile.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README b/README index be1931a..0b4f536 100644 --- a/README +++ b/README @@ -10,6 +10,7 @@ * Python 2.5 or Python 2.6 is required * python-usb module is required +* python-pkg-resources module is required diff --git a/libtoprammer/bitfile.py b/libtoprammer/bitfile.py index f728e56..532f0fa 100644 --- a/libtoprammer/bitfile.py +++ b/libtoprammer/bitfile.py @@ -19,7 +19,12 @@ """ import sys -import pkg_resources +try: + import xpkg_resources +except ImportError: + print "Failed to import the 'pkg_resources' Python module." + print "On Debian Linux run: apt-get install python-pkg-resources" + sys.exit(1) class BitfileException(Exception): pass -- cgit v1.2.3