Compare commits

...

3 Commits

Author SHA1 Message Date
Bob Lantz 0f15744cc9 Remove mnexec build and copy from make install, and add make develop. 2012-03-13 16:30:40 -07:00
Bob Lantz a0497d8c38 Change setup.py metadata to reflect BSD license. 2012-03-13 16:26:09 -07:00
Ed Swierk 2e4ef57cf0 Include mnexec.c in the Python sdist package, and compile mnexec
when building the package
2012-03-13 16:25:15 -07:00
3 changed files with 30 additions and 14 deletions
+2
View File
@@ -0,0 +1,2 @@
include mnexec.c
exclude bin/mnexec
+4 -2
View File
@@ -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
+24 -12
View File
@@ -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}
)