update bwlimit import path, and preserve bwlimit.py for compatibility with legacy...
authorStephen Soltesz <soltesz@opentechinstitute.org>
Mon, 11 Feb 2013 23:28:59 +0000 (18:28 -0500)
committerStephen Soltesz <soltesz@opentechinstitute.org>
Mon, 11 Feb 2013 23:28:59 +0000 (18:28 -0500)
bin/bwlimit
plnode-utils-lxc.spec
plnode-utils-vs.spec
setup.py

index 0630377..5c3d8de 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 
-import bwlimit
+from plnode import bwlimit
 
 if __name__ == '__main__':
     bwlimit.main()
index 83e933e..c9619ea 100644 (file)
@@ -1,6 +1,6 @@
 %define name plnode-utils
 %define version 0.2
-%define taglevel 1
+%define taglevel 2
 
 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
 
index ad5817d..d946422 100644 (file)
@@ -1,6 +1,6 @@
 %define name plnode-utils
 %define version 0.2
-%define taglevel 1
+%define taglevel 2
 
 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
 
@@ -33,6 +33,8 @@ This python package provides utilities like bwlimit, used in various places on a
 # xxx fixme
 # this is where we chose which flavour of bwlimit gets shipped
 cp plnode/bwlimit_vs.py plnode/bwlimit.py
+# for backwards compatibilty until legacy packages import from plnode
+cp plnode/bwlimit_vs.py bwlimit.py
 /usr/bin/python setup.py build
 
 %install
index 60de75e..89d77fb 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -11,5 +11,5 @@ scripts = [ "bin/bwlimit" ]
 # for now we only have bwlimit.py and its flavour is selected in the main specfile
 # that copies the right bwlimit_xxx.py into bwlimit.py
 setup(name='plnode',
-      py_modules = [ 'plnode.bwlimit' ] ,
+      py_modules = [ 'plnode.bwlimit', 'bwlimit' ] ,
       scripts = scripts)