Changeset View
Changeset View
Standalone View
Standalone View
helpers/create-abi-dump.py
Show All 10 Lines | |||||
11 | from collections import defaultdict | 11 | from collections import defaultdict | ||
12 | from typing import Dict, List, Union, Set | 12 | from typing import Dict, List, Union, Set | ||
13 | 13 | | |||
14 | from helperslib import CommonUtils, ToolingSettings | 14 | from helperslib import CommonUtils, ToolingSettings | ||
15 | from helperslib import Packages, EnvironmentHandler | 15 | from helperslib import Packages, EnvironmentHandler | ||
16 | 16 | | |||
17 | # Make sure logging is ready to go | 17 | # Make sure logging is ready to go | ||
18 | logging.basicConfig(level=logging.DEBUG) | 18 | logging.basicConfig(level=logging.DEBUG) | ||
19 | logging.getLogger("paramiko.transport").setLevel(logging.WARNING) | ||||
19 | 20 | | |||
20 | ACCXMLTMPL = """<version>{version}</version> | 21 | ACCXMLTMPL = """<version>{version}</version> | ||
21 | <headers> | 22 | <headers> | ||
22 | {headers} | 23 | {headers} | ||
23 | </headers> | 24 | </headers> | ||
24 | <libs> | 25 | <libs> | ||
25 | {libs} | 26 | {libs} | ||
26 | </libs> | 27 | </libs> | ||
▲ Show 20 Lines • Show All 260 Lines • ▼ Show 20 Line(s) | |||||
287 | parser.add_argument('--environment', type=str, required=True) | 288 | parser.add_argument('--environment', type=str, required=True) | ||
288 | parser.add_argument('--platform', type=str, required=True) | 289 | parser.add_argument('--platform', type=str, required=True) | ||
289 | parser.add_argument('--usingInstall', type=str, required=True) | 290 | parser.add_argument('--usingInstall', type=str, required=True) | ||
290 | arguments = parser.parse_args() | 291 | arguments = parser.parse_args() | ||
291 | 292 | | |||
292 | # Make sure we have an environment ready for executing commands | 293 | # Make sure we have an environment ready for executing commands | ||
293 | buildEnvironment = EnvironmentHandler.generateFor( installPrefix=arguments.usingInstall ) | 294 | buildEnvironment = EnvironmentHandler.generateFor( installPrefix=arguments.usingInstall ) | ||
294 | 295 | | |||
295 | | ||||
296 | # get acc settings | 296 | # get acc settings | ||
297 | localMetadataPath = os.path.join( CommonUtils.scriptsBaseDirectory(), 'local-metadata', 'abi-compliance-checker.yaml' ) | 297 | localMetadataPath = os.path.join( CommonUtils.scriptsBaseDirectory(), 'local-metadata', 'abi-compliance-checker.yaml' ) | ||
298 | 298 | | |||
299 | accSettings = ToolingSettings.Loader( arguments.project, arguments.platform ) | 299 | accSettings = ToolingSettings.Loader( arguments.project, arguments.platform ) | ||
300 | accSettings.loadSpecificationFile( localMetadataPath ) | 300 | accSettings.loadSpecificationFile( localMetadataPath ) | ||
301 | 301 | | |||
302 | # Get ready to start searching for libraries | 302 | # Get ready to start searching for libraries | ||
303 | foundLibraries = [] | 303 | foundLibraries = [] | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |