-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pip setup and pin dependency versions
This implies changes in the install scripts: they are moved inside the ipmininet library so that they can be used by the `setup.py` file. The documentation is also updated.
- Loading branch information
Showing
7 changed files
with
216 additions
and
107 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
Empty file.
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,57 @@ | ||
from ipmininet.utils import require_cmd | ||
from .install import * | ||
|
||
|
||
if __name__ == "__main__": | ||
|
||
args = parse_args() | ||
args.output_dir = os.path.normpath(os.path.abspath(args.output_dir)) | ||
|
||
require_cmd("pip2") | ||
require_cmd("pip3") | ||
|
||
check_pip_version("pip2") | ||
check_pip_version("pip3") | ||
|
||
if args.install_mininet: | ||
install_mininet(args.output_dir) | ||
|
||
if args.all or args.install_frrouting: | ||
install_frrouting(args.output_dir) | ||
|
||
if args.all or args.install_radvd: | ||
dist.install("radvd") | ||
|
||
if args.all or args.install_sshd: | ||
dist.install("openssh-server") | ||
|
||
# Install IPMininet | ||
|
||
if args.install_ipmininet: | ||
ipmininet_folder = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | ||
sh("pip2 -q install %s/" % ipmininet_folder) | ||
sh("pip3 -q install %s/" % ipmininet_folder) | ||
|
||
# Enable IPv6 (disabled by mininet installation) | ||
|
||
if args.all or args.enable_ipv6: | ||
enable_ipv6() | ||
|
||
# Install test dependencies | ||
|
||
dist.install("bridge-utils", "traceroute") | ||
if dist.NAME == "Fedora": | ||
dist.install("nc") | ||
else: | ||
dist.install("netcat-openbsd") | ||
|
||
sh("pip2 -q install pytest") | ||
sh("pip3 -q install pytest") | ||
|
||
# Install OpenR | ||
|
||
if args.install_openr: | ||
if dist.NAME == "Ubuntu": | ||
install_openr(args.output_dir) | ||
else: | ||
print("OpenR build currently only available on Ubuntu. Skipping installing OpenR.") |
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
File renamed without changes.
Oops, something went wrong.