Update pythonshell template

This commit is contained in:
Evie Litherland-Smith 2024-07-10 17:13:01 +01:00
parent 1842b75a75
commit 6666d4ae21

View file

@ -172,14 +172,13 @@ nix-mode
)
(pythonshell "let" n
> "pkgs = import " (p "<nixpkgs>") " {};" n
> "in pkgs.mkShellNoCC {" n
> "packages = with pkgs; [" n
> "poetry" n
> (p "python3") n
> q n
> "];" n
> "poetry = pkgs.poetry;" n
> "python = pkgs." (p "python3") ";" n
> "in pkgs.mkShell {" n
> "packages = [ poetry " q "];" n
> "shellHook = ''" n
> "export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib" n
> "${poetry}/bin/poetry env use ${python}/bin/python3" n
> "'';" n
> "}")