-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build pynACL for arm32v7 and arm64v8 #553
Comments
The workaround we are doing is using # We need to patch pynacl because of https://github.com/pyca/pynacl/issues/553
COPY PyNaCl-remove-check.patch PyNaCl-remove-check.patch
RUN cd compose-$DOCKER_COMPOSE_VER && pip download --dest "/tmp/packages" -r requirements.txt -r requirements-build.txt wheel && cd .. && \
wget -qO pynacl.tar.gz https://github.com/pyca/pynacl/archive/1.3.0.tar.gz && \
echo "205adb2804eed4bc3780584e368ef2e9b8b22a7aae85323068cadd59f3c8a584 pynacl.tar.gz" | sha256sum -c - && \
mkdir pynacl && tar --strip-components=1 -xvf pynacl.tar.gz -C pynacl && rm pynacl.tar.gz && \
cd pynacl && \
git apply ../PyNaCl-remove-check.patch && \
python3 setup.py sdist && \
cp -f dist/PyNaCl-1.3.0.tar.gz /tmp/packages/ && \
cd ../compose-$DOCKER_COMPOSE_VER && rm -rf ../pynacl && \
pip install --no-index --find-links /tmp/packages -r requirements.txt -r requirements-build.txt && rm -rf /tmp/packages With our patch being diff --git a/setup.py b/setup.py
index 747dc62..bad491d 100644
--- a/setup.py
+++ b/setup.py
@@ -175,9 +175,6 @@ class build_clib(_build_clib):
# Build the library
subprocess.check_call(["make"] + make_args, cwd=build_temp)
- # Check the build library
- subprocess.check_call(["make", "check"] + make_args, cwd=build_temp)
-
# Install the built library
subprocess.check_call(["make", "install"] + make_args, cwd=build_temp)
We don't really care about the SSH feature that made this patch necessary for docker-compose, so we don't really care about the tests passing or not either. |
Is there a non temporary solution coming soon? |
Test failures in libsodium aren't a thing pynacl can fix. Do those tests fail on the latest libsodium release? Is the issue that pynacl's libsodium is out of date? |
I managed to find an other temporary solution while I was trying to install Steps:
tar -xvf libsodium-1.0.18-stable.tar.gz libsodium-stable`
cd libsodium-stable/
./configure
make -j
make -j check
make install
(I runned this to install docker-compose: Hope someone finds this helpful |
Thank you! This was very helpful - A Node.js dev, surprisingly |
Thanks, it helps me for installing docker-compose on Linux-arm32v7 Raspberry 3 |
using |
Thank you @Pant ! Only thing that worked after hours of trial and error. |
Used workaround outlined here: pyca/pynacl#553 (comment)
Thank you @Pant ! When running Debian arm64 docker image on amd64 machine, I am able to install
This makes the installation much faster. |
Closing this as the workaround seems to work, and I don't have this problem anymore either. |
I am trying to build a python program via qemu for arm32v7 and arm64v8, but it seems the test
sodium_utils3
is failing. We are using pynacl 1.3.0.The text was updated successfully, but these errors were encountered: