fix: apprise install after bookworm update #137
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to fix the Apprise install after the move to Bookworm (Debian 12).
With Debian 12 comes Python 3.11 and PEP-668, which means that installing Debian's Python system package has the "externally managed environments" set.
There are basically 2 paths to circumvent this causing errors:
--break-system-packages
flag (keeps the old behaviour how I installedapprise
)venv
as PEP-668 intents to nag you to do.I attempted the latter, however, since I never really worked with venv nor claim to be a python crack in general I was unable to get it to work within the limited time I had available to invest in this update.
Similarly, I had no luck with attempting to use
pipx
, which abstracts away thevenv
for you, but then fails to makeapprise
available system wide.Finally, I opted to use the
--break-system-packages
flag, as the impact of installingapprise
is foreseeable and we live within a container anyway.If anyone finds this PR and wants to contribute a
pipx
solution I would be interested, but in the mean time this will do.