[Install checker] Added message about auto-downloaded tools
- Also added a mention to WSL
This commit is contained in:
parent
be5c2ff29e
commit
ce02b6d4a3
|
|
@ -366,7 +366,7 @@ deps = '{\
|
||||||
"KiCost": {\
|
"KiCost": {\
|
||||||
"command": "kicost",\
|
"command": "kicost",\
|
||||||
"deb_package": "kicost",\
|
"deb_package": "kicost",\
|
||||||
"downloader": null,\
|
"downloader": {},\
|
||||||
"extra_deb": null,\
|
"extra_deb": null,\
|
||||||
"help_option": "--version",\
|
"help_option": "--version",\
|
||||||
"importance": 10001,\
|
"importance": 10001,\
|
||||||
|
|
@ -401,8 +401,8 @@ deps = '{\
|
||||||
]\
|
]\
|
||||||
}\
|
}\
|
||||||
],\
|
],\
|
||||||
"url": "https://github.com/INTI-CMNB/KiCost",\
|
"url": "https://github.com/hildogjr/KiCost",\
|
||||||
"url_down": "https://github.com/INTI-CMNB/KiCost/releases"\
|
"url_down": "https://github.com/hildogjr/KiCost/releases"\
|
||||||
},\
|
},\
|
||||||
"LXML": {\
|
"LXML": {\
|
||||||
"command": "lxml",\
|
"command": "lxml",\
|
||||||
|
|
@ -909,7 +909,7 @@ def python_module(severity, name, deb_package, roles):
|
||||||
print(RESET)
|
print(RESET)
|
||||||
|
|
||||||
|
|
||||||
def binary_tool(severity, name, url, url_down, deb_package, deb, extra_deb, roles):
|
def binary_tool(severity, name, url, url_down, deb_package, deb, extra_deb, roles, downloader):
|
||||||
if not severity:
|
if not severity:
|
||||||
return
|
return
|
||||||
print(sev2color(severity)+'* {} not installed or too old'.format(name))
|
print(sev2color(severity)+'* {} not installed or too old'.format(name))
|
||||||
|
|
@ -923,6 +923,8 @@ def binary_tool(severity, name, url, url_down, deb_package, deb, extra_deb, role
|
||||||
print(' Visit: '+url)
|
print(' Visit: '+url)
|
||||||
if url_down:
|
if url_down:
|
||||||
print(' Download it from: '+url_down)
|
print(' Download it from: '+url_down)
|
||||||
|
if isinstance(downloader, dict):
|
||||||
|
print(' This tool might be automatically downloaded by KiBot.')
|
||||||
show_roles(roles)
|
show_roles(roles)
|
||||||
print(RESET)
|
print(RESET)
|
||||||
|
|
||||||
|
|
@ -1086,6 +1088,7 @@ if not os_ok:
|
||||||
elif system == 'Windows':
|
elif system == 'Windows':
|
||||||
print(' Windows may work with some limitations for KiCad 6.x')
|
print(' Windows may work with some limitations for KiCad 6.x')
|
||||||
print(' Consider using a docker image, Windows docker can run Linux images (using virtualization)')
|
print(' Consider using a docker image, Windows docker can run Linux images (using virtualization)')
|
||||||
|
print(' You can also try WSL (Windows Subsystem for Linux)')
|
||||||
else:
|
else:
|
||||||
print(' What OS are you using? Is KiCad available for it?')
|
print(' What OS are you using? Is KiCad available for it?')
|
||||||
print(' Please consult: https://github.com/INTI-CMNB/KiBot/issues')
|
print(' Please consult: https://github.com/INTI-CMNB/KiBot/issues')
|
||||||
|
|
@ -1118,8 +1121,9 @@ for name, d in dependencies.items():
|
||||||
if d['is_python']:
|
if d['is_python']:
|
||||||
python_module(d['sev'], d['pypi_name'], d['deb_package'], d['roles'])
|
python_module(d['sev'], d['pypi_name'], d['deb_package'], d['roles'])
|
||||||
else:
|
else:
|
||||||
|
# TODO: check pip_ok and if this is a Python tool suggest install pip
|
||||||
binary_tool(d['sev'], d['name'], d['url'], d['url_down'], d['deb_package'], d['in_debian'], d['extra_deb'],
|
binary_tool(d['sev'], d['name'], d['url'], d['url_down'], d['deb_package'], d['in_debian'], d['extra_deb'],
|
||||||
d['roles'])
|
d['roles'], d['downloader'])
|
||||||
|
|
||||||
labels = ('ok', 'optional for an output', 'optional for general use', 'mandatory for an output', 'mandatory for general use')
|
labels = ('ok', 'optional for an output', 'optional for general use', 'mandatory for an output', 'mandatory for general use')
|
||||||
text = ', '.join([sev2color(c)+l+RESET for c, l in enumerate(labels)])
|
text = ', '.join([sev2color(c)+l+RESET for c, l in enumerate(labels)])
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,7 @@ def python_module(severity, name, deb_package, roles):
|
||||||
print(RESET)
|
print(RESET)
|
||||||
|
|
||||||
|
|
||||||
def binary_tool(severity, name, url, url_down, deb_package, deb, extra_deb, roles):
|
def binary_tool(severity, name, url, url_down, deb_package, deb, extra_deb, roles, downloader):
|
||||||
if not severity:
|
if not severity:
|
||||||
return
|
return
|
||||||
print(sev2color(severity)+'* {} not installed or too old'.format(name))
|
print(sev2color(severity)+'* {} not installed or too old'.format(name))
|
||||||
|
|
@ -243,6 +243,8 @@ def binary_tool(severity, name, url, url_down, deb_package, deb, extra_deb, role
|
||||||
print(' Visit: '+url)
|
print(' Visit: '+url)
|
||||||
if url_down:
|
if url_down:
|
||||||
print(' Download it from: '+url_down)
|
print(' Download it from: '+url_down)
|
||||||
|
if isinstance(downloader, dict):
|
||||||
|
print(' This tool might be automatically downloaded by KiBot.')
|
||||||
show_roles(roles)
|
show_roles(roles)
|
||||||
print(RESET)
|
print(RESET)
|
||||||
|
|
||||||
|
|
@ -406,6 +408,7 @@ if not os_ok:
|
||||||
elif system == 'Windows':
|
elif system == 'Windows':
|
||||||
print(' Windows may work with some limitations for KiCad 6.x')
|
print(' Windows may work with some limitations for KiCad 6.x')
|
||||||
print(' Consider using a docker image, Windows docker can run Linux images (using virtualization)')
|
print(' Consider using a docker image, Windows docker can run Linux images (using virtualization)')
|
||||||
|
print(' You can also try WSL (Windows Subsystem for Linux)')
|
||||||
else:
|
else:
|
||||||
print(' What OS are you using? Is KiCad available for it?')
|
print(' What OS are you using? Is KiCad available for it?')
|
||||||
print(' Please consult: https://github.com/INTI-CMNB/KiBot/issues')
|
print(' Please consult: https://github.com/INTI-CMNB/KiBot/issues')
|
||||||
|
|
@ -438,8 +441,9 @@ for name, d in dependencies.items():
|
||||||
if d['is_python']:
|
if d['is_python']:
|
||||||
python_module(d['sev'], d['pypi_name'], d['deb_package'], d['roles'])
|
python_module(d['sev'], d['pypi_name'], d['deb_package'], d['roles'])
|
||||||
else:
|
else:
|
||||||
|
# TODO: check pip_ok and if this is a Python tool suggest install pip
|
||||||
binary_tool(d['sev'], d['name'], d['url'], d['url_down'], d['deb_package'], d['in_debian'], d['extra_deb'],
|
binary_tool(d['sev'], d['name'], d['url'], d['url_down'], d['deb_package'], d['in_debian'], d['extra_deb'],
|
||||||
d['roles'])
|
d['roles'], d['downloader'])
|
||||||
|
|
||||||
labels = ('ok', 'optional for an output', 'optional for general use', 'mandatory for an output', 'mandatory for general use')
|
labels = ('ok', 'optional for an output', 'optional for general use', 'mandatory for an output', 'mandatory for general use')
|
||||||
text = ', '.join([sev2color(c)+l+RESET for c, l in enumerate(labels)])
|
text = ', '.join([sev2color(c)+l+RESET for c, l in enumerate(labels)])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue