summaryrefslogtreecommitdiffstats
path: root/libtoprammer/bitfile.py
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-02-23 00:27:50 +0100
committerMichael Buesch <mb@bu3sch.de>2010-02-23 00:27:50 +0100
commit5bd9a1f5d7008b64b9edff064dbe85597e6b6868 (patch)
tree53d13e528468b8fcb552ce3196a6af93f684deb2 /libtoprammer/bitfile.py
parent283f056af38ceb49d075df53e793ada5198ba717 (diff)
downloadtoprammer-5bd9a1f5d7008b64b9edff064dbe85597e6b6868.tar.xz
toprammer-5bd9a1f5d7008b64b9edff064dbe85597e6b6868.zip
Add pkg_resources to dependency list
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'libtoprammer/bitfile.py')
-rw-r--r--libtoprammer/bitfile.py7
1 files changed, 6 insertions, 1 deletions
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
bues.ch cgit interface