Skip to content

Commit db8ae0a

Browse files
Fix debian build
* Install scikit-build-core * Set fail-fast to false * Build with no isolation
1 parent 63e84fa commit db8ae0a

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/build-deb.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
PACKAGE_NAME: python3-monero_${{ github.run_id }}-1${{ matrix.name }}1_${{ matrix.arch }}
1414

1515
strategy:
16-
fail-fast: true
16+
fail-fast: false
1717
matrix:
1818
include:
1919
- name: noble
@@ -104,7 +104,7 @@ jobs:
104104
matrix.arch == 'armhf' && 'linux/arm/v7' ||
105105
'linux/arm64' }}
106106
PACKAGE_NAME="python3-monero_${{ github.run_id }}-1${{ matrix.name }}1_${{ matrix.arch }}"
107-
107+
108108
docker run --rm \
109109
--platform $PLATFORM \
110110
-v $PWD:/monero-python -w /monero-python \

Dockerfile.linux

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ RUN apt-get update && apt-get install -y \
1717
debhelper bison flex wget \
1818
&& rm -rf /var/lib/apt/lists/*
1919

20+
RUN . /etc/os-release && \
21+
if [ "$VERSION_CODENAME" = "jammy" ]; then \
22+
pip3 install scikit-build-core; \
23+
else \
24+
pip3 install scikit-build-core --break-system-packages; \
25+
fi
26+
2027
RUN wget https://github.com/libexpat/libexpat/releases/download/R_2_4_8/expat-2.4.8.tar.bz2 \
2128
&& tar -xf expat-2.4.8.tar.bz2 \
2229
&& cd expat-2.4.8 \

docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ cmake --build . &&
5454
make .
5555
cd ../../../
5656

57-
pip3 install -vvv . --target build/${PACKAGE_NAME}/usr/lib/python3/dist-packages
57+
pip3 install -vvv . --no-build-isolation --target build/${PACKAGE_NAME}/usr/lib/python3/dist-packages
5858

5959
cp -R src/python build/${PACKAGE_NAME}/usr/lib/python3/dist-packages/monero
6060
rm -rf build/${PACKAGE_NAME}/usr/lib/python3/dist-packages/pybind11*

0 commit comments

Comments
 (0)