Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f15744cc9 | |||
| a0497d8c38 | |||
| 2e4ef57cf0 |
@@ -0,0 +1,2 @@
|
||||
include mnexec.c
|
||||
exclude bin/mnexec
|
||||
@@ -21,10 +21,12 @@ test: $(MININET) $(TEST)
|
||||
-echo "Running tests"
|
||||
mininet/test/test_nets.py
|
||||
|
||||
install: mnexec
|
||||
cp mnexec bin/
|
||||
install:
|
||||
python setup.py install
|
||||
|
||||
develop:
|
||||
python setup.py develop
|
||||
|
||||
doc:
|
||||
doxygen doxygen.cfg
|
||||
|
||||
|
||||
@@ -2,26 +2,33 @@
|
||||
|
||||
"Setuptools params"
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
from os.path import join
|
||||
|
||||
scripts = [ join( 'bin', filename ) for filename in [
|
||||
'mn', 'mnexec' ] ]
|
||||
import os, setuptools
|
||||
import distutils.command.build_scripts
|
||||
import distutils.command.clean
|
||||
import distutils.ccompiler
|
||||
|
||||
modname = distname = 'mininet'
|
||||
|
||||
setup(
|
||||
class build_scripts(distutils.command.build_scripts.build_scripts):
|
||||
def run(self):
|
||||
distutils.ccompiler.new_compiler().link_executable(["mnexec.c"], "bin/mnexec")
|
||||
distutils.command.build_scripts.build_scripts.run(self)
|
||||
|
||||
class clean(distutils.command.clean.clean):
|
||||
def run(self):
|
||||
if os.path.exists("bin/mnexec"):
|
||||
os.unlink("bin/mnexec")
|
||||
distutils.command.clean.clean.run(self)
|
||||
|
||||
setuptools.setup(
|
||||
name=distname,
|
||||
version='0.0.0',
|
||||
description='Process-based OpenFlow emulator',
|
||||
author='Bob Lantz',
|
||||
author_email='rlantz@cs.stanford.edu',
|
||||
packages=find_packages(exclude='test'),
|
||||
long_description="""
|
||||
Insert longer description here.
|
||||
""",
|
||||
packages=setuptools.find_packages(exclude='test'),
|
||||
classifiers=[
|
||||
"License :: OSI Approved :: GNU General Public License (GPL)",
|
||||
"License :: OSI Approved :: BSD",
|
||||
"Programming Language :: Python",
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
@@ -33,5 +40,10 @@ Insert longer description here.
|
||||
'setuptools',
|
||||
'networkx'
|
||||
],
|
||||
scripts=scripts,
|
||||
scripts=[
|
||||
'bin/mn',
|
||||
'bin/mnexec'
|
||||
],
|
||||
cmdclass={"build_scripts": build_scripts,
|
||||
"clean": clean}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user