From f87a7efcbe0b0e780152278cac66758b51d9e981 Mon Sep 17 00:00:00 2001 From: Rolf Madsen Date: Thu, 12 Mar 2026 11:22:44 +0100 Subject: [PATCH 1/2] Added /usr/lib as a search path. --- OpenTap.Python/PythonInstallationDiscoverer.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OpenTap.Python/PythonInstallationDiscoverer.cs b/OpenTap.Python/PythonInstallationDiscoverer.cs index 222cfa6..a40b855 100644 --- a/OpenTap.Python/PythonInstallationDiscoverer.cs +++ b/OpenTap.Python/PythonInstallationDiscoverer.cs @@ -181,9 +181,14 @@ static IEnumerable LocatePythonsWin32() } } - else + else // Assume OS is Linux { - foreach(var basePath in new [] {"/usr/lib/x86_64-linux-gnu/", "/usr/lib/aarch64-linux-gnu/"} + foreach(var basePath in new [] { + "/usr/lib/x86_64-linux-gnu/", + "/usr/lib/aarch64-linux-gnu/", + "/usr/lib/" // alpine linux + + } .Where(Directory.Exists)) foreach (var python in TryFindPythons(basePath)) { From 81428828ce27641b9770ac3dc555be912f2da968 Mon Sep 17 00:00:00 2001 From: Rolf Madsen Date: Thu, 12 Mar 2026 14:33:38 +0100 Subject: [PATCH 2/2] testing on alpine # Conflicts: # .github/workflows/build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 833b4b8..e38c5d4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,7 +108,7 @@ jobs: - name: Install dependencies run: | apk add --no-cache \ - bash git python3 py3-pip py3-numpy \ + bash git python3 python3-dev py3-pip py3-numpy \ dotnet-sdk-8.0 \ icu-libs - name: Checkout