Skip to content

Commit

Permalink
Add setup.py (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongkai-dai authored Dec 16, 2023
1 parent 0d3dca4 commit f2d4881
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ $$\exists u\in\mathcal{U} \begin{cases}L_fV(x)+L_gV(x)u\leq -\kappa_VV(x)\\
We will certify and synthesize such compatible CLF and CBFs through Sum-of-Squares optimization.

# Getting started
After installing all the dependencies in `requirements.txt`, please make sure that you can use Mosek solver. Please set the environment variable that points to the Mosek license as
## Installation
Run
```
$ pip install -e .
```
to install the dependencies and the package.
After the installation, please make sure that you can use Mosek solver. Please set the environment variable that points to the Mosek license as
```
export MOSEKLM_LICENSE_FILE=/path/to/mosek.lic
```
Expand Down
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from setuptools import setup, find_packages

# Read the contents of requirements file
with open('requirements.txt') as f:
requirements = f.read().splitlines()

setup(
name="compatible_clf_cbf",
version="0.1",
packages=find_packages(),
install_requires=requirements,
)

0 comments on commit f2d4881

Please sign in to comment.