From 925281b9f036552f7fe252da0e05407f4ed2db62 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 3 Nov 2016 22:35:29 +0100 Subject: Depend on pyudev during runtime In v2.1.fb60 an unconditional dependency to pyudev was added, which needs to be specified in the egg info, otherwise pip install might fail with e.g. File "local/lib/python2.7/site-packages/rtslib/utils.py", line 30, in import pyudev ImportError: No module named pyudev --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 48f6282..7770032 100755 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ setup ( url = 'http://github.com/open-iscsi/rtslib-fb', packages = ['rtslib_fb', 'rtslib'], scripts = ['scripts/targetctl'], + install_requires = ['pyudev >= 0.16.1'], classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", -- cgit v1.2.1