oracle/python-oracledb

Build for alpine

Closed this issue · 4 comments

Jaza commented

It would be great if there were python-oracledb wheels for Alpine Linux that get built alongside the current manylinux wheels.

I did some research, and support for musl (which Alpine and various other distros use instead of glibc) was added to the relevant tools back in 2021 - see pypa/packaging#411 .

So, it should be possible to add this support to python-oracledb , with a change like this:

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index d75527f..a106b9f 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -53,6 +53,12 @@ jobs:
           - os: ubuntu-24.04-arm
             platform: arm64
             container: quay.io/pypa/manylinux_2_28_aarch64
+          - os: alpine-3.22
+            platform: amd64
+            container: quay.io/pypa/musllinux_1_2_x86_64
+          - os: alpine-3.22-arm
+            platform: arm64
+            container: quay.io/pypa/musllinux_1_2_aarch64
 
     steps:

Team python-oracledb , if you're able to look into this when you get a chance, would be great.

cjbj commented

I like the way you think, but we are not currently able to add this OS to our test plans, so creating wheels in the base project might lead to misconceptions and ensuing business issues.

PS please sign the OCA so we can take your future PRs.

Jaza commented

@cjbj thanks for responding so quickly. It's a shame that you're totally ruling this out, I think it would be useful for a few folks out there.

cjbj commented

We'll revisit it at some stage.

cjbj commented

@Jaza send me email and we can talk more.