Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Apr 8, 2024
1 parent 1d23294 commit 370fdde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
9 changes: 3 additions & 6 deletions _states/cacophony.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,9 @@ def pkg_installed_from_pypi(
try:
installed_version = run_command(f'{python_path} -c "{version_cmd}"')
except Exception as e:
return {
"name": pkg_name,
"result": False,
"comment": f"Error running {version_cmd} : {e} ",
"changes": {},
}
# assume not installed
installed_version =""

installed_version = installed_version.strip()
if installed_version == version:
return {
Expand Down
7 changes: 2 additions & 5 deletions tc2/thermal-recorder-py/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ classifier-eqs:
- libdbus-glib-1-dev
- libdbus-1-dev
- ffmpeg

venv:
pip.installed:
- name: virtualenv

- python3-virtualenv


classifier-env:
virtualenv.managed:
Expand Down

0 comments on commit 370fdde

Please sign in to comment.