From 93ca4a168d4cafbd95dc777685099409f12cb4fa Mon Sep 17 00:00:00 2001 From: Tim Salzmann Date: Sat, 2 Sep 2023 16:50:16 +0200 Subject: [PATCH] v1.0.0 PyPi --- README.md | 18 ++++++++++++++---- pyproject.toml | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8bd7ea0..ad21e16 100644 --- a/README.md +++ b/README.md @@ -23,23 +23,33 @@ Independently if you install from source or via pip you will need to meet the fo - Working PyTorch installation in your python environment.\ `python -c "import torch; print(torch.__version__)"` -- All build dependencies installed via\ -`pip install -r requirements_build.txt` - ### Pip Install +- Ensure all build dependencies are installed +``` +setuptools>=68.1 +scikit-build>=0.17 +cmake>=3.27 +ninja>=1.11 +torch>=2.0 +``` + +- Run\ `pip install l4casadi --no-build-isolation` ### From Source - Clone the repository\ `git clone https://github.com/Tim-Salzmann/l4casadi.git` +- All build dependencies installed via\ +`pip install -r requirements_build.txt` + - Build from source\ `pip install . --no-build-isolation` The `--no-build-isolation` flag is required for L4CasADi to find and link against the installed PyTorch. #### GPU (CUDA) Installation -Install L4CasADi via `CUDACXX= ./install.sh` +Install L4CasADi via `CUDACXX= pip install l4casadi --no-build-isolation` or `CUDACXX= pip install l4casadi --no-build-isolation` to build from source. #### Mac M1 - ARM On MacOS with M1 chip you will have to compile [tera_renderer](https://github.com/acados/tera_renderer) from source diff --git a/pyproject.toml b/pyproject.toml index 2ff0bc7..1344d5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta" [project] name = "l4casadi" -version = "0.0.2" +version = "1.0.0" authors = [ { name="Tim Salzmann", email="Tim.Salzmann@tum.de" }, ]