| 14 Jul 2022 |
K900 | I think | 20:42:02 |
sephi | It looks like it’s still 1.1.12 https://github.com/NixOS/nixpkgs/blob/release-22.05/pkgs/development/python-modules/poetry/default.nix#L35 :/ I’ll use the one from master | 20:49:02 |
sephi | Using 1.1.14 and clearing the cache worked, thanks! | 20:53:31 |
| 15 Jul 2022 |
sephi | Now I’m getting a collision error:
error: builder for '/nix/store/hfsfhk6p3kp7cl7vrhc4a0ahnixsb5dv-python3-3.9.13-env.drv' failed with exit code 25;
last 1 log lines:
> error: collision between `/nix/store/fiyljlyywkmri69jvnwfkm8v8yfzpaw6-python3.9-django-3.0.14/bin/.django-admin-wrapped' and `/nix/store/9n0j67gwj13c2jfkplc524r8kqf4jnc4-python3.9-mysite-0.1.0/bin/.django-admin-wrapped'
My derivation is really basic:
server = poetry2nix.mkPoetryApplication {
projectDir = ./.;
python = python39;
};
As soon as I’m using server.dependencyEnv in a systemd unit I’m getting the collision error. Using just server works (I guess because it doesn’t include any binaries).
Is there a way to tell nix to not try to add the bin directory to the path?
| 09:22:57 |
sephi | I ended up using server.dependencyEnv.overrideAttrs (_: { pathsToLink = [ "/lib" ]; }) and it worked (I also tried pathsToLink = [ ] but the lib directory was missing in the environment, I’m not sure why) | 10:55:34 |
| 16 Jul 2022 |
adisbladis | In reply to @k900:0upti.me 1.1.14 should be backported to 22.05 It was backported already | 08:48:29 |
worldofgeese | Maybe a dumb question but if you're using direnv for virtual environments and just using Poetry for the binary output of your program and not anything of the poetry run, shell "baggage" is the appropriate thing to do to put all your development dependencies into your devShell? | 11:08:13 |
K900 | You can use mkPoetryEnv as your devShell | 11:08:53 |
worldofgeese | Or what's best practice? Because I've found with direnv and then a poetry shell my terminal session turns into hieroglyphics | 11:08:59 |
worldofgeese | K900: and then just skip any of poetry's own commands, right? | 11:10:25 |
K900 | What commands? | 11:10:33 |
worldofgeese | Well poetry run and shell | 11:10:41 |
K900 | Yes | 11:10:46 |
adisbladis | In reply to @worldofgeese:one.ems.host Or what's best practice? Because I've found with direnv and then a poetry shell my terminal session turns into hieroglyphics You do not want to call poetry shell from direnv | 11:19:30 |
adisbladis | Either do what K900 is saying and use mkPoetryEnv or use some indirection in .envrc to activate the venv. Iirc there is some thing for that on the direnv wiki. | 11:21:25 |
worldofgeese | What do y'all think of PDM? | 20:10:12 |
K900 | I don't really see why I'd want to use it over Poetry | 20:12:44 |
K900 | Like, it's not bad, but it also doesn't really do anything Poetry doesn't already do, except the __pypackages__ thing I guess | 20:14:50 |
K900 | And the __pypackages__ thing relies on a horrible hack and will remain that way until the PEP is accepted and implemented | 20:17:01 |
K900 | Which might not even happen | 20:17:12 |
| 17 Jul 2022 |
| slby joined the room. | 20:08:28 |
| 18 Jul 2022 |
| trexd joined the room. | 17:46:02 |
| 20 Jul 2022 |
| Joël Perras joined the room. | 15:42:02 |
| 21 Jul 2022 |
| Ebrahim joined the room. | 15:05:21 |
| 25 Jul 2022 |
| Aljoša Mohorović joined the room. | 15:23:47 |
Aljoša Mohorović | would it be possible to remove pyopenssl as a dependency on apple m1 arch? | 15:24:49 |
K900 | A dependency of what? | 15:25:00 |
Aljoša Mohorović | poetry | 15:29:38 |
K900 | I don't think so | 15:29:53 |
K900 | At least it's definitely not trivial | 15:29:56 |