Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup.py #26

Merged
merged 1 commit into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
)