Sender | Message | Time |
---|---|---|
29 Oct 2024 | ||
of python-ldap | 14:28:07 | |
I did try something like that:
I found that done in other parts of the code, but that didn't seem to help | 14:31:57 | |
I usually put it in buildInputs not propagatedBuildInputs
Should no longer be necessary if you poetry2nix is up to date | 14:34:34 | |
It's already here https://github.com/nix-community/poetry2nix/blob/2b84afaf6ff1765bcb4cdd97e53a6914feb82ebf/overrides/default.nix#L2724 | 14:35:33 | |
I'm just working from a poetry2nix source tree :) | 14:35:39 | |
So yes, working from what is already there | 14:35:57 | |
20:07:06 | ||
31 Oct 2024 | ||
19:52:24 | ||
I'm running into a problem that I cannot figure out, if someone has a clue, I would very much appreciate some feedback. I am getting an error when I use nix to run or build my python poetry project if the entry point module is not named main. Here is the error:
Here is the structure of my project:
Here is the [tool.poetry.scripts] section of my pyproject.toml
Here is my flake.nix
If I simply rename the cli.py module to main.py, and change the pyproject.toml to reflect the new name, everything works, and there is no error when running the executable produced by nix build, or running with nix run. The structure of my project tree when it works is simply
Here is the [tool.poetry.scripts] section of my pyproject.toml with the associated change
Does anyone know why I am getting the error when I try to name the module something other than main.py, how can I get everything working when I name the module cli.py? | 19:55:59 | |
You probably don't have the renamed module tracked by git | 19:56:34 | |
So it's filtered out when evaluating the flake | 19:56:42 | |
I have just double checked, and everything is being tracked. Thanks your suggestion tho. | 19:58:39 | |
Also I love how you're in every single nix related matrix room :P thanks for trying to answer my questions | 19:59:11 | |
When you rename the file, git does not track the rename | 19:59:18 | |
Unless you use git mv | 19:59:23 | |
I have committed the changes tho, I can try with git mv to see if it makes a difference | 19:59:51 | |
No change | 20:03:00 | |
What's the output of git show HEAD ? | 20:04:04 | |
| 20:07:39 | |
And what is in your pyproject.toml ? | 20:10:01 | |
| 20:11:25 | |
poetry run mypackage works correctly btw. | 20:12:27 | |
* poetry run mypackage works correctly btw with whatever the module is named | 20:12:55 | |
1 Nov 2024 | ||
Seems to work fine for me fwiw
cat test/pyproject.toml [tool.poetry.dependencies] [tool.poetry.scripts] [build-system]
foo
| 14:35:54 | |
* Seems to work fine for me fwiw
| 14:37:01 | |
* Seems to work fine for me fwiw
| 14:39:02 | |
2 Nov 2024 | ||
02:26:45 | ||
Hey folks, anyone know offhand how to fix this? I'm building pyqtwebengine with poetry2nix and its missing some kind of (propagated) dep or something, but idk enough about qt/sip;
| 02:28:05 | |
hrmblgrmbl.... https://github.com/Python-SIP/sip/blob/10cb0c23cd25756769a1a388ab0976245e7f6590/sipbuild/builder.py#L228 | 03:28:53 | |
ah...yeah here we go..i guess this is the way to go, bleh... https://github.com/NixOS/nixpkgs/blob/a3a8b0fbfb8dc700982a1d4fe6078e92b8042c54/pkgs/development/python-modules/pyqtwebengine/default.nix#L35 | 03:42:14 |