diff options
-rw-r--r-- | rtslib/__init__.py | 5 | ||||
-rwxr-xr-x | scripts/targetctl | 2 | ||||
-rwxr-xr-x | setup.py | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/rtslib/__init__.py b/rtslib/__init__.py index 72d3067..5b6dfd6 100644 --- a/rtslib/__init__.py +++ b/rtslib/__init__.py @@ -16,6 +16,11 @@ License for the specific language governing permissions and limitations under the License. ''' +if __name__ == "rtslib": + from warnings import warn + warn("'rtslib' package name for rtslib-fb is deprecated, please" + + " instead import 'rtslib_fb'", UserWarning, stacklevel=2) + from root import RTSRoot from utils import RTSLibError, RTSLibBrokenLink, RTSLibNotInCFS diff --git a/scripts/targetctl b/scripts/targetctl index cc4eb99..9d02b91 100755 --- a/scripts/targetctl +++ b/scripts/targetctl @@ -24,7 +24,7 @@ under the License. from __future__ import print_function -from rtslib import RTSRoot +from rtslib_fb import RTSRoot import os import sys @@ -26,7 +26,8 @@ setup ( maintainer = 'Andy Grover', maintainer_email = 'agrover@redhat.com', url = 'http://github.com/agrover/rtslib-fb', - packages = ['rtslib'], + packages = ['rtslib_fb', 'rtslib'], + package_dir = {'rtslib_fb': 'rtslib'}, scripts = ['scripts/targetctl'], use_2to3 = True, ) |