Skip to content

Commit

Permalink
[brazil-data-cube#68] Add requirements txt and csv to install script
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnerErnaniADSFatec committed Oct 2, 2024
1 parent 5bafb26 commit d6d90d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions wtss_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ def run_install_pkgs_process():
if not checkbox.isChecked():
target = ['--target', lib_path()]
if install_requirements.clickedButton() == buttons['install_all']:
subprocess.run([
'pip', 'install', '--upgrade',
'-r', requirements_file('txt')
] + target)
subprocess.run(
[
'pip', 'install', '--upgrade',
'-r', requirements_file('txt')
] + target,
shell = True
)
#
# Request restart
raise_restart()
Expand Down Expand Up @@ -140,7 +143,8 @@ def run_install_pkgs_process():
subprocess.run(
['pip', 'install'] + target +
['--upgrade'] +
[f"{pkg_name}>={pkg_required_version}"]
[f"{pkg_name}>={pkg_required_version}"],
shell = True
)
else:
pass
Expand All @@ -155,7 +159,8 @@ def run_install_pkgs_process():
if install_lib.clickedButton() == buttons_lib['install']:
subprocess.run(
['pip', 'install'] + target +
[f"{pkg_name}>={pkg_required_version}"]
[f"{pkg_name}>={pkg_required_version}"],
shell = True
)
else:
pass
Expand Down
Binary file modified wtss_plugin/controller/assets/marker-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d6d90d0

Please sign in to comment.