!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

398 Members
92 Servers

Load older messages


SenderMessageTime
19 Oct 2024
@artturin:matrix.orgArtturinThat's a meson config file added by mkDerivation04:33:23
@artturin:matrix.orgArtturinWhy does it depend on that04:33:29
@artturin:matrix.orgArtturinnix why-depends04:33:55
@jackwilsdon:matrix.orgjackwilsdon

😒

lib/python3.12/site-packages/contourpy/util/_build_config.py:        build_options=r"-Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dvsenv=True --cross-file=/nix/store/iv4iygkdy52b8vawy0b5aqxi7lpk7afy-cross-file.conf --native-file=/build/source/.mesonpy-uct67tqu/meson-python-native-file.ini
04:34:17
@jackwilsdon:matrix.orgjackwilsdon This _build_config.py is awful 04:34:26
@artturin:matrix.orgArtturinWtf04:34:30
@artturin:matrix.orgArtturinGist the whole thing04:35:01
@jackwilsdon:matrix.orgjackwilsdonhttps://gist.github.com/jackwilsdon/562ea1baea28c1e5c915f09c8f4307e304:35:59
@jackwilsdon:matrix.orgjackwilsdonNo idea where it gets that install dir from, it seems like it's something provided by meson-python04:36:14
@jackwilsdon:matrix.orgjackwilsdonIt's that for the non-cross-compiled version too so 🤷04:36:58
@jackwilsdon:matrix.orgjackwilsdon I think I might do a substituteInFile on this to disable some of the conf_data.set calls: https://github.com/contourpy/contourpy/blob/27160ab9a3f2d32f8d6b1990ae2919475c322283/lib/contourpy/util/meson.build#L20 04:38:44
@jackwilsdon:matrix.orgjackwilsdonPrimarily the python path and build arg ones04:38:52
@artturin:matrix.orgArtturinDoes anything in the output even depend on that04:38:58
@jackwilsdon:matrix.orgjackwilsdonUnit tests and it's re-exported from the library to its public interface, but other than that no https://github.com/contourpy/contourpy/blob/27160ab9a3f2d32f8d6b1990ae2919475c322283/lib/contourpy/util/__init__.py#L504:39:41
@jackwilsdon:matrix.orgjackwilsdonWhether any consumers of this package actually pull it in is another matter 😛04:40:35
@artturin:matrix.orgArtturinTry the github search?04:41:51
@jackwilsdon:matrix.orgjackwilsdonhttps://github.com/search?q=%2Fcontourpy.*build_config%2F+language%3APython+-path%3Acontourpy%2Futil%2F__init__.py&type=code 04:41:55
@jackwilsdon:matrix.orgjackwilsdonI think that's the right search, doesn't find anything though04:42:02
@jackwilsdon:matrix.orgjackwilsdon And nobody really seems to import contourpy.util to then call build_config on it later: https://github.com/search?q=%2Fimport+contourpy.util%2F+language%3APython+-path%3Acontourpy%2Futil%2F__init__.py&type=code 04:42:59
@jackwilsdon:matrix.orgjackwilsdonI don't mind just setting the build arguments to "<omitted>" in a postPatch stage, I can set python path fine04:43:25
@jackwilsdon:matrix.orgjackwilsdonStill a bit nasty but it'll be as close to "original" as possible without lots of messing04:43:42
@artturin:matrix.orgArtturinStub the thing and make it error if imported/used if possible 04:48:04
@artturin:matrix.orgArtturinAnd remove the file04:48:09
@jackwilsdon:matrix.orgjackwilsdonIt's a function so I can just replace it with a version that raises an exception I guess04:48:21
@jackwilsdon:matrix.orgjackwilsdonI guess we'll need a patch for that 😕04:48:43
@artturin:matrix.orgArtturinhttps://github.com/contourpy/contourpy/pull/22704:55:19
@artturin:matrix.orgArtturinThey refer to scipy04:55:24
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/7e2eb4642f7ca9c4ee2c069d65a48575068b4f57/pkgs/development/python-modules/scipy/default.nix#L19604:55:35
@artturin:matrix.orgArtturinIt removes store paths https://github.com/NixOS/nixpkgs/blob/7e2eb4642f7ca9c4ee2c069d65a48575068b4f57/pkgs/build-support/nuke-references/nuke-refs.sh#L404:56:52
@jackwilsdon:matrix.orgjackwilsdonNot seen nuke-refs, but that sounds like what I want I guess!04:57:01

Show newer messages


Back to Room ListRoom Version: 6