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 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)) {