| 11 Jul 2022 |
plato | Too bad it's not telling me where it wants to put the symlink. | 12:17:12 |
plato | Hmmm, both use lib/python3.10/site-packages/LICENSE. Probably should be lib/python3.10/site-packages/$PACKAGE_NAME/LICNSE? | 12:17:46 |
K900 | Very likely yes | 12:21:12 |
| 12 Jul 2022 |
plato | In reply to @k900:0upti.me Very likely yes It's fixed now, thanks! | 05:38:11 |
plato | Another question though: I have to add poetry to my buildInputs in the overrides for my own package. I assume I did something wrong while building the package that makes this necessary | 05:38:55 |
K900 | Does it not build if you don't do that? | 05:56:07 |
plato | Exactly | 06:06:03 |
plato | I guess poetry2nix is looking for some field in the package to then auto-include poetry into the buildInputs? | 06:06:31 |
K900 | Can you post the output from a failed build? | 06:19:57 |
plato | Any preferred pastebin, or can I post it here? | 06:36:17 |
K900 | Just post it here | 06:48:41 |
plato | error: builder for '/nix/store/wwpwj67j5l6j3wznsj6daamj8lhzyrfg-python3.10-cfel-pylint-checkers-1.0.2.drv' failed with exit code 2;
last 10 log lines:
> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
> File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
> File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
> File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
> File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
> ModuleNotFoundError: No module named 'poetry'
>
>
For full logs, run 'nix log /nix/store/wwpwj67j5l6j3wznsj6daamj8lhzyrfg-python3.10-cfel-pylint-checkers-1.0.2.drv'.
error: 1 dependencies of derivation '/nix/store/7hzn25yajy5nnffjq5yjykpxzq84hwcd-python3-3.10.5-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gnpq05l5v66d3cx2vd76axr8flk1bcw9-interactive-python3-3.10.5-environment-env.drv' failed to build
| 06:50:55 |
K900 | Is that your root level package? | 06:56:38 |
K900 | Can you also post your pyproject.toml? | 06:56:45 |
plato | So in my root-level package I have cfel-pylint-checkers = "1.0.2" in my [tool.poetry.dev-dependencies]. | 06:59:44 |
plato | Do you want to pyproject.toml for the root project or cfel-pylint-checkers? | 07:00:00 |
plato | The latter would be here: https://gitlab.desy.de/cfel-sc-public/cfel-pylint-checkers/-/blob/main/pyproject.toml | 07:00:20 |
K900 | Oh | 07:01:16 |
K900 | So it's a dependency | 07:01:24 |
K900 | In that case you probably want to add an override | 07:01:31 |
K900 | Poetry currently doesn't track build dependencies | 07:01:52 |
K900 | But you can add it here: https://github.com/nix-community/poetry2nix/blob/master/overrides/build-systems.json | 07:01:55 |
plato | Ah, so poetry2nix cannot detect a poetry dependency by itself. | 07:02:15 |
K900 | It can detect a poetry dependency, it can't detect a build system dependency | 07:02:28 |
K900 | If a package has poetry as an actual dependency, it will work | 07:03:08 |
K900 | But not if it requires poetry to build, but does not specify it as a dependency | 07:03:24 |
plato | Okay, but having poetry as an actual dependency doesn't make too much sense here, I think. | 07:03:56 |
plato | When would that be sensible in general? | 07:04:03 |
K900 | Here it doesn't | 07:04:03 |
K900 | Maybe if you're building some sort of plugin or wrapper tool for poetry itself | 07:04:15 |