summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/pip/amd64.dockerfile6
-rw-r--r--docker/pip/arm64.dockerfile6
2 files changed, 8 insertions, 4 deletions
diff --git a/docker/pip/amd64.dockerfile b/docker/pip/amd64.dockerfile
index 27bbb8b..572fdd3 100644
--- a/docker/pip/amd64.dockerfile
+++ b/docker/pip/amd64.dockerfile
@@ -15,9 +15,11 @@ RUN CGO_ENABLED=1 go build -buildvcs=false -o lib/linux/amd64/libeduvpn_common-$
WORKDIR /pip/eduvpn-common-$COMMONVERSION/wrappers/python
-RUN ./setup.py bdist_wheel --exports-lib-path="../../lib"
+RUN python3 -m pip install build
+RUN install ../../lib/linux/amd64/libeduvpn_common-$COMMONVERSION.so -Dt eduvpn_common/lib
+RUN python3 -m build --sdist --wheel .
-RUN auditwheel repair dist/*
+RUN auditwheel repair dist/*.whl
RUN mkdir /wheelhouse
RUN cp -r wheelhouse/* /wheelhouse \ No newline at end of file
diff --git a/docker/pip/arm64.dockerfile b/docker/pip/arm64.dockerfile
index 47a832b..cdd822c 100644
--- a/docker/pip/arm64.dockerfile
+++ b/docker/pip/arm64.dockerfile
@@ -15,9 +15,11 @@ RUN CGO_ENABLED=1 go build -buildvcs=false -o lib/linux/arm64/libeduvpn_common-$
WORKDIR /pip/eduvpn-common-$COMMONVERSION/wrappers/python
-RUN ./setup.py bdist_wheel --exports-lib-path="../../lib"
+RUN python3 -m pip install build
+RUN install ../../lib/linux/arm64/libeduvpn_common-$COMMONVERSION.so -Dt eduvpn_common/lib
+RUN python3 -m build --sdist --wheel .
-RUN auditwheel repair dist/*
+RUN auditwheel repair dist/*.whl
RUN mkdir /wheelhouse
RUN cp -r wheelhouse/* /wheelhouse \ No newline at end of file