From 247dc93312971acc392ca8ac68b94d183e2bfb28 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Tue, 6 Dec 2022 09:14:55 -0500 Subject: [PATCH] some more interesting bits --- Notes.rst | 5 +++++ crossenv/flake.nix | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Notes.rst b/Notes.rst index 7d27d8b..5189eab 100644 --- a/Notes.rst +++ b/Notes.rst @@ -217,6 +217,11 @@ These seem to have cffi as a build-time dependency. Cross-env gives the build pip env the host cffi .so so it fails. + Ah, but you can clobber this with:: + + build-pip install cffi + + And somehow this gets used instead. * Integrate a Python Tahoe-LAFS runtime with a GUI diff --git a/crossenv/flake.nix b/crossenv/flake.nix index fb083c9..f8b11f3 100644 --- a/crossenv/flake.nix +++ b/crossenv/flake.nix @@ -50,6 +50,15 @@ # expose ffi header and library so we can build cffi, itself used by # various other Python packages cross-pkgs.libffi + + # expose openssl header and library for python-cryptography build. + # It seems wrong that this is from native-pkgs, so maybe it is. + native-pkgs.openssl_1_1 + + # expose a native rust toolchain so we can build the rust-based + # Python extensions + native-pkgs.rustc + native-pkgs.cargo ]; setupCrossEnv = '' @@ -68,6 +77,11 @@ # Activate the cross build environment for interactive use. . ./cross-env/bin/activate + + # Now you can, eg, + # + # build-pip install a-build-dependency + # pip wheel somepackagetobuild ''; shellHook = '' -- GitLab