Skip to content

Commit

Permalink
Port install-lib fixes from toltec (#49)
Browse files Browse the repository at this point in the history
* Port install-lib fixes from toltec

* Bump version number

* Fix building on python 3.12
  • Loading branch information
Eeems authored May 29, 2024
1 parent d44f66a commit a4952e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "toltecmk"
version = "0.3.1"
version = "0.3.2"
authors = [
{ name="Mattéo Delabre", email="[email protected]" },
{ name="Eeems", email="[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion toltec/hooks/install_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def post_package(
)
add_method(
"unit-exists",
'[ "$(systemctl --quiet list-unit-files "${1}" | grep -c "${1}")" -eq 1 ]',
'[ "$(systemctl --quiet list-unit-files "${1}" | /bin/grep -c "${1}" 2> /dev/null)" -eq 1 ]', # pylint: disable=line-too-long
)
add_method(
"disable-unit",
Expand Down
3 changes: 2 additions & 1 deletion toltecmk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ a = Analysis(
pathex=[],
binaries=[],
datas=[],
hiddenimports=[f"toltec.hooks.{x}" for x in toltec.hooks.__all__],
hiddenimports=[f"toltec.hooks.{x}" for x in toltec.hooks.__all__]
+ ["pkg_resources.extern"],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
Expand Down

0 comments on commit a4952e3

Please sign in to comment.