| 8 Nov 2023 |
matthewcroughan - nix.how | * triton = (super.triton.override { preferWheel = false; }).overridePythonAttrs
(
old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.cmake ];
}
);
| 20:10:02 |
matthewcroughan - nix.how | * triton = (super.triton.override { preferWheel = false; }).overridePythonAttrs
(
old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.cmake ];
}
);
| 20:10:06 |
matthewcroughan - nix.how | even though I've set preferWheel = false | 20:10:19 |
matthewcroughan - nix.how | even when it gets the wheel, it keeps saying it needs cmake | 20:10:35 |
@fractivore:cyberia.club | Just an update, since I got a lot of help with a poetry2nix build the other day - that project turned out to be very nix unfriendly. After initial installation, it checked for some other third party tools and then tried installing them via pip. This failed of course from my binary built with poetry2nix. I decided to stop pursuing packing it due to its rather fundamentally unfriendly design towards nix. | 20:27:25 |
@fractivore:cyberia.club | It's basically a bundle of other projects, so it would make more sense to just pack the constituents individually and pull them together into a fully declarative configuration. | 21:09:29 |
@fractivore:cyberia.club | No matter, it was a good opportunity to learn about poetry2nix. | 21:11:59 |
adisbladis | In reply to @matthewcroughan:defenestrate.it even when it gets the wheel, it keeps saying it needs cmake Maybe the wheel is linking against it? | 21:15:41 |
matthewcroughan - nix.how | adisbladis: ``` python3.11-triton> /nix/store/nid28g9ivpg8lvc6wk8na8mzxzyhqw8m-python3.11-cmake-3.26.4/nix-support/setup-hook: line 126: cmake: command not found
| 22:04:52 |
matthewcroughan - nix.how | * adisbladis:
python3.11-triton> /nix/store/nid28g9ivpg8lvc6wk8na8mzxzyhqw8m-python3.11-cmake-3.26.4/nix-support/setup-hook: line 126: cmake: command not found
| 22:04:58 |
matthewcroughan - nix.how | but it's just a dist/*.whl | 22:05:05 |
adisbladis | Oh right | 22:05:12 |
adisbladis | Can you provide some more context? | 22:05:38 |
adisbladis | What's printing that cmake command not found thing? | 22:05:48 |
matthewcroughan - nix.how | nix log /nix/store/r59rs9daw3cq4hsjdf3f4vp0yaaaw5l7-python3.11-triton-2.0.0.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/r59rs9daw3cq4hsjdf3f4vp0yaaaw5l7-python3.11-triton-2.0.0.drv^*'
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing wheel setup hook
Using wheelUnpackPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
Executing wheelUnpackPhase
Finished executing wheelUnpackPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Relea>
CMake Warning:
Ignoring extra path from command line:
".."
CMake Error: The source directory "/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
| 22:05:51 |
matthewcroughan - nix.how | In reply to @adis:blad.is What's printing that cmake command not found thing? triton | 22:05:54 |
matthewcroughan - nix.how | https://github.com/imartinez/privateGPT/blob/main/poetry.lock#L4460 | 22:06:12 |
matthewcroughan - nix.how | as a result of this lock | 22:06:15 |
matthewcroughan - nix.how | adisbladis: check out my override sin the flake here
https://github.com/MatthewCroughan/privateGPT/blob/main/flake.nix#L25-L145
| 22:07:29 |
matthewcroughan - nix.how | * adisbladis: check out my overrides in the flake here
https://github.com/MatthewCroughan/privateGPT/blob/main/flake.nix#L25-L145
| 22:07:34 |
matthewcroughan - nix.how | it's a loooooot of them, maybe useful for poetry2nix's overrides | 22:07:42 |
matthewcroughan - nix.how | a lot of vendoring the cargo.locks, even though the upstream src has a lock. | 22:08:04 |
adisbladis | https://github.com/MatthewCroughan/privateGPT/blob/main/flake.nix#L34 | 22:08:09 |
adisbladis | At least that would explain the setup hook error | 22:09:11 |
matthewcroughan - nix.how | Did I do something wrong there? | 22:10:03 |
adisbladis | Why are you adding cmake? | 22:10:14 |
matthewcroughan - nix.how | it said cmake not found | 22:10:24 |
matthewcroughan - nix.how | If I remove that override:
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing wheel setup hook
Using wheelUnpackPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
Executing wheelUnpackPhase
Finished executing wheelUnpackPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Relea>
/nix/store/nid28g9ivpg8lvc6wk8na8mzxzyhqw8m-python3.11-cmake-3.26.4/nix-support/setup-hook: line 126: cmake: command not found
lines 1-24/24 (END)
| 22:10:53 |
adisbladis | It's almost 100% doing that because you added the override | 22:11:11 |
matthewcroughan - nix.how | well I removed the override, and the above log is what I get | 22:11:23 |