Use install(1) to install mnexec so that setup.py develop works.
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
all: codecheck test
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf build dist *.egg-info *.pyc mnexec bin/mnexec
|
|
||||||
|
|
||||||
MININET = mininet/*.py
|
MININET = mininet/*.py
|
||||||
TEST = mininet/test/*.py
|
TEST = mininet/test/*.py
|
||||||
EXAMPLES = examples/*.py
|
EXAMPLES = examples/*.py
|
||||||
BIN = bin/mn
|
BIN = bin/mn
|
||||||
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
|
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
|
||||||
|
MNEXEC = mnexec
|
||||||
P8IGN = E251,E201,E302,E202
|
P8IGN = E251,E201,E302,E202
|
||||||
|
|
||||||
|
all: codecheck test
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf build dist *.egg-info *.pyc $(MNEXEC)
|
||||||
|
|
||||||
codecheck: $(PYSRC)
|
codecheck: $(PYSRC)
|
||||||
-echo "Running code check"
|
-echo "Running code check"
|
||||||
pyflakes $(PYSRC)
|
pyflakes $(PYSRC)
|
||||||
@@ -26,10 +26,14 @@ test: $(MININET) $(TEST)
|
|||||||
-echo "Running tests"
|
-echo "Running tests"
|
||||||
mininet/test/test_nets.py
|
mininet/test/test_nets.py
|
||||||
|
|
||||||
install: mnexec
|
install: $(MNEXEC)
|
||||||
cp mnexec bin/
|
install $(MNEXEC) /usr/local/bin/
|
||||||
python setup.py install
|
python setup.py install
|
||||||
|
|
||||||
|
develop: $(MNEXEC)
|
||||||
|
install $(MNEXEC) /usr/local/bin/
|
||||||
|
python setup.py develop
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
doxygen doxygen.cfg
|
doxygen doxygen.cfg
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from os.path import join
|
from os.path import join
|
||||||
|
|
||||||
scripts = [ join( 'bin', filename ) for filename in [
|
scripts = [ join( 'bin', filename ) for filename in [ 'mn' ] ]
|
||||||
'mn', 'mnexec' ] ]
|
|
||||||
|
|
||||||
modname = distname = 'mininet'
|
modname = distname = 'mininet'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user