refact: remove python & c++ bindings
This commit is contained in:
parent
7f63df2946
commit
8d8e4fccd4
15 changed files with 13 additions and 1245 deletions
52
devenv.nix
52
devenv.nix
|
|
@ -21,63 +21,11 @@ in
|
|||
pkgs.samply # code profiler
|
||||
pkgs.feedgnuplot # to visualize bots training results
|
||||
|
||||
# --- AI training with python ---
|
||||
# generate python classes from rust code
|
||||
pkgs.maturin
|
||||
# required by python numpy
|
||||
pkgs.libz
|
||||
|
||||
# for bevy
|
||||
pkgs.alsa-lib
|
||||
pkgs.udev
|
||||
|
||||
# bevy fast compile
|
||||
pkgs.clang
|
||||
pkgs.lld
|
||||
|
||||
# copié de https://github.com/mmai/Hyperspeedcube/blob/develop/devenv.nix
|
||||
# TODO : retirer ce qui est inutile
|
||||
# pour erreur à l'exécution, selon https://github.com/emilk/egui/discussions/1587
|
||||
pkgs.libxkbcommon
|
||||
pkgs.libGL
|
||||
|
||||
# WINIT_UNIX_BACKEND=wayland
|
||||
pkgs.wayland
|
||||
|
||||
# WINIT_UNIX_BACKEND=x11
|
||||
pkgs.xorg.libXcursor
|
||||
pkgs.xorg.libXrandr
|
||||
pkgs.xorg.libXi
|
||||
pkgs.xorg.libX11
|
||||
|
||||
pkgs.vulkan-headers
|
||||
pkgs.vulkan-loader
|
||||
# ------------ fin copie
|
||||
|
||||
];
|
||||
|
||||
# https://devenv.sh/languages/
|
||||
languages.rust.enable = true;
|
||||
|
||||
|
||||
# AI training with python
|
||||
enterShell = ''
|
||||
PYTHONPATH=$PYTHONPATH:$PWD/.devenv/state/venv/lib/python3/site-packages
|
||||
'';
|
||||
|
||||
languages.python = {
|
||||
enable = true;
|
||||
uv.enable = true;
|
||||
venv.enable = true;
|
||||
venv.requirements = "
|
||||
pip
|
||||
gymnasium
|
||||
numpy
|
||||
stable-baselines3
|
||||
shimmy
|
||||
";
|
||||
};
|
||||
|
||||
# https://devenv.sh/scripts/
|
||||
# scripts.hello.exec = "echo hello from $GREET";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue