Skip to content

Commit

Permalink
v1.0.0 PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Salzmann committed Sep 2, 2023
1 parent 25b16a4 commit 93ca4a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=<PATH_TO_nvcc> ./install.sh`
Install L4CasADi via `CUDACXX=<PATH_TO_nvcc> pip install l4casadi --no-build-isolation` or `CUDACXX=<PATH_TO_nvcc> 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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]" },
]
Expand Down

0 comments on commit 93ca4a1

Please sign in to comment.