Skip to content

Commit e8ea4ac

Browse files
committed
RHAIENG-948: fix(ppc): build failure due to missing cryptography build dependencies in aipcc wheel index
``` × Failed to download and build `cryptography==43.0.3` ├─▶ Failed to resolve requirements from `build-system.requires` ├─▶ No solution found when resolving: `maturin>=1, <2`, `cffi>=1.12 │ ; platform_python_implementation != 'PyPy'`, `setuptools!=74.0.0, │ !=74.1.0, !=74.1.1, !=74.1.2, !=74.1.3, !=75.0.0, !=75.1.0, !=75.2.0` ╰─▶ Because only maturin==1.9.6 is available and maturin==1.9.6 has no wheels with a matching platform tag (e.g., `manylinux_2_34_ppc64le`), we can conclude that maturin==1.9.6 cannot be used. And because you require maturin==1.9.6, we can conclude that your requirements are unsatisfiable. hint: Wheels are available for `maturin` (v1.9.6) on the following platforms: `linux_aarch64`, `linux_x86_64` ```
1 parent 683cdff commit e8ea4ac

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,12 @@ echo "Installing software and packages"
400400
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
401401
if [ "$TARGETARCH" = "ppc64le" ] || [ "$TARGETARCH" = "s390x" ]; then
402402
# We need special flags and environment variables when building packages
403+
# aipcc does not have some dependencies to build cryptography==43.0.3 on ppc64le, so we need to use pypi.org/simple
403404
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 \
404405
CFLAGS="-O3" CXXFLAGS="-O3" \
405406
uv pip install --strict --no-deps --no-cache --no-config --no-progress \
406407
--verify-hashes --compile-bytecode --index-strategy=unsafe-best-match \
408+
--extra-index-url https://pypi.org/simple \
407409
--requirements=./pylock.toml
408410
else
409411
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,

jupyter/datascience/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,12 @@ echo "Installing software and packages"
394394
# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
395395
if [ "$TARGETARCH" = "ppc64le" ] || [ "$TARGETARCH" = "s390x" ]; then
396396
# We need special flags and environment variables when building packages
397+
# aipcc does not have some dependencies to build cryptography==43.0.3 on ppc64le, so we need to use pypi.org/simple
397398
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 \
398399
CFLAGS="-O3" CXXFLAGS="-O3" \
399400
uv pip install --strict --no-deps --no-cache --no-config --no-progress \
400401
--verify-hashes --compile-bytecode --index-strategy=unsafe-best-match \
402+
--extra-index-url https://pypi.org/simple \
401403
--requirements=./pylock.toml
402404
else
403405
# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,

0 commit comments

Comments
 (0)