review module layout and get the packaging we want
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 18 Jul 2012 13:11:04 +0000 (15:11 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 18 Jul 2012 13:11:04 +0000 (15:11 +0200)
bin/bwlimit [moved from bwlimit with 100% similarity]
plnode-utils-lxc.spec
plnode-utils-vs.spec
plnode/bwlimit_lxc.py [moved from bwlimit_lxc.py with 100% similarity]
plnode/bwlimit_vs.py [moved from bwlimit_vs.py with 100% similarity]
setup.py

similarity index 100%
rename from bwlimit
rename to bin/bwlimit
index aed7c12..e54bed8 100644 (file)
@@ -29,7 +29,7 @@ This python package provides utilities like bwlimit, used in various places on a
 %build
 # xxx fixme
 # this is where we chose which flavour of bwlimit gets shipped
-cp bwlimit_lxc.py bwlimit.py
+cp plnode/bwlimit_lxc.py plnode/bwlimit.py
 python setup.py build
 
 %install
index 4f1af77..6317bb0 100644 (file)
@@ -29,7 +29,7 @@ This python package provides utilities like bwlimit, used in various places on a
 %build
 # xxx fixme
 # this is where we chose which flavour of bwlimit gets shipped
-cp bwlimit_vs.py bwlimit.py
+cp plnode/bwlimit_vs.py plnode/bwlimit.py
 python setup.py build
 
 %install
similarity index 100%
rename from bwlimit_lxc.py
rename to plnode/bwlimit_lxc.py
similarity index 100%
rename from bwlimit_vs.py
rename to plnode/bwlimit_vs.py
index a4eb86d..60de75e 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -5,12 +5,11 @@ from glob import glob
 import shutil
 from distutils.core import setup
 
-scripts = [ "bwlimit" ] 
+scripts = [ "bin/bwlimit" ] 
 
 # xxx fixme
 # 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',
-      package_dir={'plnode':'.'},
-      py_modules = [ 'bwlimit' ] ,
+      py_modules = [ 'plnode.bwlimit' ] ,
       scripts = scripts)