#!/usr/bin/env python
"""Bootstrap setuptools installation
To use setuptools in your package's setup.py, include this
file in the same directory and add this to the top of your setup.py::
from ez_setup import use_setuptools
use_setuptools()
To require a specific version of setuptools, set a download
mirror, or use an alternate download directory, simply supply
the appropriate options to ``use_setuptools()``.
This file can also be run as a script to install or upgrade setuptools.
"""
from __future__ import absolute_import
import os
import shutil
import sys
import tempfile
import zipfile
import optparse
import subprocess
import platform
import contextlib
from distutils import log
try:
from urllib.request import urlopen
except ImportError:
from six.moves.urllib import urlopen
try:
from site import USER_SITE
except ImportError:
USER_SITE = None
DEFAULT_VERSION = "6.1"
DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/"
def _python_cmd(*args):
"""
Return True if the command succeeded.
"""
args = (sys.executable,) + args
return subprocess.call(args) == 0
def _install(archive_filename, install_args=()):
with archive_context(archive_filename):
# installing
log.warn('Installing Setuptools')
if not _python_cmd('setup.py', 'install', *install_args):
log.warn('Something went wrong during the installation.')
log.warn('See the error message above.')
# exitcode will be 2
return 2
def _build_egg(egg,.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666666 } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008800 } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */
.highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
.highlight .na { color: #336699 } /* Name.Attribute */
.highlight .nb { color: #003388 } /* Name.Builtin */
.highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555 } /* Name.Decorator */
.highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */
.highlight .nl { color: #336699; font-style: italic } /* Name.Label */
.highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #336699; font-weight: bold } /* Name.Property */
.highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #336699 } /* Name.Variable */
.highlight .ow { color: #008800 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
.highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
.highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
.highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
.highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
.highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
.highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
.highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
.highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
.highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
.highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700 } /* Name.Variable.Global */
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */
.highlight .vm { color: #336699 } /* Name.Variable.Magic */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */{
"id": 16,
"title": "Yardstick-TC027",
"originalTitle": "Yardstick-TC027",
"tags": [
"yardstick-tc"
],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"rows": [
{
"collapse": false,
"editable": true,
"height": "25px",
"panels": [
{
"content": "<h5 style=\"font-family:Verdana\"> <a style=\"color:#31A7D3\"><center>OPNFV_Yardstick_TC027 - Network latency (Ping6)</center> </a></h5>\n<center>\n<p>Evaluation of network latency (RTT - round trip time) between two VM instances running on different physical blades.\nFor more information see <a style=\"color:#31A7D3\"; href=\"http://artifacts.opnfv.org/yardstick/brahmaputra/docs/userguide/opnfv_yardstick_tc027.html\">TC027</a></p>\n</center>",
"editable": true,
"error": false,
"id": 2,
"isNew": true,
"links": [],
"mode": "html",
"span": 12,
"style": {},
"title": "",
"type": "text"
}
],
"title": "New row"
},
{
"collapse": false,
"editable": true,
"height": "25px",
"panels": [
{
"content": "",
"editable": true,
"error": false,
"id": 1,
"isNew": true,
"links": [],
"mode": "markdown",
"span": 12,
"style": {},
"title": "Test Case Execution",
"type": "text"
}
],
"title": "Row"
},
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"aliasColors": {},
"bars": false,
"datasource": "yardstick-vtc",
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 4,
"isNew": true,
"leftYAxisLabel": "RTT (ms)",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": true,
"renderer": "flot",
"seriesOverrides": [],
"span": 12,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "",
"dsType": "influxdb",
"groupBy": [
{
"type": "tag",
"params": [
"deploy_scenario"
]
},
{
"type": "tag",
"params": [
"installer"
]
}
],
"measurement": "opnfv_yardstick_tc027",
"query": "SELECT \"rtt\" FROM \"opnfv_yardstick_tc027\" WHERE \"pod_name\" = 'huawei-pod1' AND \"deploy_scenario\" = 'os-nosdn-nofeature-ha' AND $timeFilter GROUP BY \"deploy_scenario\", \"installer\"",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"rtt"
],
"type": "field"
}
]
],
"tags": [
{
"key": "pod_name",
"operator": "=",
"value": "huawei-pod1"
},
{
"condition": "AND",
"key": "deploy_scenario",
"operator": "=",
"value": "os-nosdn-nofeature-ha"
}
]
}
],
"timeFrom": "14d",
"timeShift": null,
"title": "RTT",
"tooltip": {
"shared": true,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
]
}
],
"title": "New row"
},
{
"collapse": false,
"editable": true,
"height": "25px",
"panels": [
{
"content": "",
"editable": true,
"error": false,
"id": 3,
"isNew": true,
"links": [],
"mode": "markdown",
"span": 12,
"style": {},
"title": "Daily Averages",
"type": "text"
}
],
"title": "New row"
},
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"columns": [],
"datasource": "yardstick-vtc",
"editable": true,
"error": false,
"fontSize": "100%",
"id": 5,
"isNew": true,
"links": [],
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"span": 12,
"styles": [
{
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"targets": [
{
"alias": "$tag_pod_name - $tag_deploy_scenario",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"pod_name"
],
"type": "tag"
},
{
"params": [
"deploy_scenario"
],
"type": "tag"
}
],
"measurement": "opnfv_yardstick_tc027",
"query": "SELECT \"rtt\" FROM \"opnfv_yardstick_tc027\" WHERE \"pod_name\" =~ /$POD$/ AND \"deploy_scenario\" =~ /$SCENARIO$/ AND $timeFilter GROUP BY \"pod_name\", \"deploy_scenario\"",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"rtt"
],
"type": "field"
}
]
],
"tags": [
{
"key": "pod_name",
"operator": "=~",
"value": "/$POD$/"
},
{
"condition": "AND",
"key": "deploy_scenario",
"operator": "=~",
"value": "/$SCENARIO$/"
}
]
}
],
"timeFrom": "14d",
"title": "$POD",
"transform": "timeseries_to_rows",
"type": "table"
}
],
"title": "New row"
},
{
"collapse": false,
"editable": true,
"height": "250px",
"panels": [
{
"aliasColors": {},
"bars": false,
"datasource": "yardstick-vtc",
"editable": true,
"error": false,
"fill": 1,
"grid": {
"leftLogBase": 1,
"leftMax": null,
"leftMin": null,
"rightLogBase": 1,
"rightMax": null,
"rightMin": null,
"threshold1": null,
"threshold1Color": "rgba(216, 200, 27, 0.27)",
"threshold2": null,
"threshold2Color": "rgba(234, 112, 112, 0.22)"
},
"id": 6,
"isNew": true,
"leftYAxisLabel": "RTT (ms)",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": true,
"renderer": "flot",
"seriesOverrides": [],
"span": 12,
"stack": false,
"steppedLine": false,
"targets": [
{
"alias": "$tag_pod_name - $tag_deploy_scenario",
"dsType": "influxdb",
"groupBy": [
{
"params": [
"pod_name"
],
"type": "tag"
},
{
"params": [
"deploy_scenario"
],
"type": "tag"
}
],
"measurement": "opnfv_yardstick_tc027",
"query": "SELECT \"rtt\" FROM \"opnfv_yardstick_tc027\" WHERE \"pod_name\" =~ /$POD$/ AND \"deploy_scenario\" =~ /$SCENARIO$/ AND $timeFilter GROUP BY \"pod_name\", \"deploy_scenario\"",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"rtt"
],
"type": "field"
}
]
],
"tags": [
{
"key": "pod_name",
"operator": "=~",
"value": "/$POD$/"
},
{
"condition": "AND",
"key": "deploy_scenario",
"operator": "=~",
"value": "/$SCENARIO$/"
}
]
}
],
"timeFrom": "14d",
"timeShift": null,
"title": "$POD",
"tooltip": {
"shared": true,
"value_type": "cumulative"
},
"type": "graph",
"x-axis": true,
"y-axis": true,
"y_formats": [
"short",
"short"
],
"links": []
}
],
"title": "New row"
}
],
"time": {
"from": "now-30d",
"to": "now"
},
"timepicker": {
"now": true,
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"templating": {
"list": [
{
"allFormat": "regex values",
"current": {
"tags": [],
"text": "huawei-pod1",
"value": "huawei\\-pod1"
},
"datasource": "yardstick-vtc",
"includeAll": true,
"multi": true,
"multiFormat": "regex values",
"name": "POD",
"options": [
{
"text": "All",
"value": "(elxg482ls42|ericsson\\-pod1|ericsson\\-pod2|huawei\\-pod1|huawei\\-pod2|huawei\\-us\\-deploy\\-bare\\-1|intel\\-pod5|intel\\-pod6|lf\\-pod1|lf\\-pod2|opnfv\\-jump\\-1|opnfv\\-jump\\-2|orange\\-fr\\-pod2|unknown|zte\\-pod1)",
"selected": false
},
{
"text": "elxg482ls42",
"value": "elxg482ls42",
"selected": false
},
{
"text": "ericsson-pod1",
"value": "ericsson\\-pod1",
"selected": false
},
{
"text": "ericsson-pod2",
"value": "ericsson\\-pod2",
"selected": false
},
{
"text": "huawei-pod1",
"value": "huawei\\-pod1",
"selected": true
},
{
"text": "huawei-pod2",
"value": "huawei\\-pod2",
"selected": false
},
{
"text": "huawei-us-deploy-bare-1",
"value": "huawei\\-us\\-deploy\\-bare\\-1",
"selected": false
},
{
"text": "intel-pod5",
"value": "intel\\-pod5",
"selected": false
},
{
"text": "intel-pod6",
"value": "intel\\-pod6",
"selected": false
},
{
"text": "lf-pod1",
"value": "lf\\-pod1",
"selected": false
},
{
"text": "lf-pod2",
"value": "lf\\-pod2",
"selected": false
},
{
"text": "opnfv-jump-1",
"value": "opnfv\\-jump\\-1",
"selected": false
},
{
"text": "opnfv-jump-2",
"value": "opnfv\\-jump\\-2",
"selected": false
},
{
"text": "orange-fr-pod2",
"value": "orange\\-fr\\-pod2",
"selected": false
},
{
"text": "unknown",
"value": "unknown",
"selected": false
},
{
"text": "zte-pod1",
"value": "zte\\-pod1",
"selected": false
}
],
"query": "SHOW TAG VALUES WITH KEY = \"pod_name\"",
"refresh": false,
"type": "query"
},
{
"allFormat": "regex values",
"current": {
"text": "os-nosdn-nofeature-ha + os-nosdn-nofeature-noha",
"value": [
"os\\-nosdn\\-nofeature\\-ha",
"os\\-nosdn\\-nofeature\\-noha"
],
"tags": []
},
"datasource": "yardstick-vtc",
"includeAll": true,
"multi": true,
"multiFormat": "regex values",
"name": "SCENARIO",
"options": [
{
"text": "All",
"value": "(os\\-no_sdn\\-ovs\\-ha|os\\-nosdn\\-kvm\\-ha|os\\-nosdn\\-nofeature\\-ha|os\\-nosdn\\-nofeature\\-noha|os\\-nosdn\\-ovs\\-ha|os\\-ocl\\-nofeature\\-ha|os\\-odl_l2\\-bgpvpn\\-ha|os\\-odl_l2\\-nofeature\\-ha|os\\-odl_l2\\-nofeature\\-noha|os\\-odl_l2\\-sfc\\-ha|os\\-odl_l3\\-nofeature\\-ha|os\\-onos\\-nofeature\\-ha|os\\-onos\\-sfc\\-ha|os\\-ovs\\-nofeature\\-ha|unknown)",
"selected": false
},
{
"text": "os-no_sdn-ovs-ha",
"value": "os\\-no_sdn\\-ovs\\-ha",
"selected": false
},
{
"text": "os-nosdn-kvm-ha",
"value": "os\\-nosdn\\-kvm\\-ha",
"selected": false
},
{
"text": "os-nosdn-nofeature-ha",
"value": "os\\-nosdn\\-nofeature\\-ha",
"selected": true
},
{
"text": "os-nosdn-nofeature-noha",
"value": "os\\-nosdn\\-nofeature\\-noha",
"selected": true
},
{
"text": "os-nosdn-ovs-ha",
"value": "os\\-nosdn\\-ovs\\-ha",
"selected": false
},
{
"text": "os-ocl-nofeature-ha",
"value": "os\\-ocl\\-nofeature\\-ha",
"selected": false
},
{
"text": "os-odl_l2-bgpvpn-ha",
"value": "os\\-odl_l2\\-bgpvpn\\-ha",
"selected": false
},
{
"text": "os-odl_l2-nofeature-ha",
"value": "os\\-odl_l2\\-nofeature\\-ha",
"selected": false
},
{
"text": "os-odl_l2-nofeature-noha",
"value": "os\\-odl_l2\\-nofeature\\-noha",
"selected": false
},
{
"text": "os-odl_l2-sfc-ha",
"value": "os\\-odl_l2\\-sfc\\-ha",
"selected": false
},
{
"text": "os-odl_l3-nofeature-ha",
"value": "os\\-odl_l3\\-nofeature\\-ha",
"selected": false
},
{
"text": "os-onos-nofeature-ha",
"value": "os\\-onos\\-nofeature\\-ha",
"selected": false
},
{
"text": "os-onos-sfc-ha",
"value": "os\\-onos\\-sfc\\-ha",
"selected": false
},
{
"text": "os-ovs-nofeature-ha",
"value": "os\\-ovs\\-nofeature\\-ha",
"selected": false
},
{
"text": "unknown",
"value": "unknown",
"selected": false
}
],
"query": "SHOW TAG VALUES WITH KEY = \"deploy_scenario\"",
"refresh": false,
"type": "query"
}
]
},
"annotations": {
"list": []
},
"schemaVersion": 8,
"version": 8,
"links": []
}