Use setuptools to install python files

Now, to reference mininet files, use 'import mininet.mininet'.

PYTHONPATH mods are no longer required for installation.
This commit is contained in:
Brandon Heller
2009-12-18 12:12:37 -08:00
parent cd27f9db57
commit 51270ce4a2
16 changed files with 49 additions and 19 deletions
+6 -3
View File
@@ -3,9 +3,12 @@ Preliminary Mininet Installation/Configuration Notes
- This is not (yet) a 'release'; things may be broken.
- Mininet is not currently 'installed.' If you want to install it,
so that you can 'import mininet', place mininet.py somewhere in your
python path.
- To install mininet, with root privileges:
python setup.py install
This places the mininet package in /usr/lib/python-2.5/site-packages/,
so that 'import mininet' will work.
- A functional netns binary is required to run mininet, but currently you
have to compile it and install it yourself from the included .c file: