forked from noxrepo/pox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves noxrepo#145. - Added a setup.py - Provide an entry_point to pox.boot.boot() for the cli - Install /var/lib/pox-<version> - Now looks for extensions in /var/lib/pox-<version>/ext - Also looks for extensions in $PWD/ext - installs tools to /var/lib/pox-<version>/tools - licenses, readme, etc. installed to /var/lib/pox-<version>/doc - Removes the debug-config.py alias trick due to pathing issues for cli install - now use pox --debug - Removes the pypy trick. - to use pypy, install with pypy via: pypy setup.py install This will ensure scripts have a #!/usr/bin/pypy shebang.
- Loading branch information
Showing
19 changed files
with
75 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import glob | ||
import os | ||
|
||
import pox.core | ||
from setuptools import setup | ||
from setuptools import find_packages | ||
|
||
|
||
NAME="pox" | ||
DESCRIPTION="POX is a networking software platform." | ||
|
||
|
||
core = pox.core.initialize() | ||
VERSION=".".join(map(str,core.version)) | ||
|
||
tools=glob.glob("tools/*") | ||
exts=glob.glob("ext/*.py") | ||
docs=['LICENSE', 'README', 'NOTICE'] | ||
pox_dir="pox-{0}".format(VERSION) | ||
shares=os.path.join("usr", "share", pox_dir) | ||
|
||
setup(name=NAME, | ||
version=VERSION, | ||
description=DESCRIPTION, | ||
author="Murphy McCauley", | ||
url="http://www.noxrepo.org/", | ||
packages=find_packages(exclude=["tests", "tests.*"]), | ||
data_files=[ | ||
(os.path.join(shares, 'tools'), tools), | ||
(os.path.join(core.library, 'ext'), exts), | ||
(os.path.join(shares, "doc"), docs), | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
'pox = pox.boot:boot', | ||
], | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
needs fixing.