-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.md.jinja
More file actions
48 lines (32 loc) · 1.17 KB
/
README.md.jinja
File metadata and controls
48 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Frequenz {{project_name | replace("-", " ")}}
{{project_description}}
{% if python %}
## Python Bindings
To work with the Python bindings, first activate a Python Environment in which
you want to run/build your Rust features.
### Building
To build the wheels, run:
```bash
pip install -r requirements.txt
maturin build --release --features python -o wheels -i $$(which python)
```
This will install the required dependencies from
[requirements.txt](./requirements.txt), build the wheel,
and store it in the [./wheels](./wheels) directory.
### Installing
To install the project directly to the currently active Python environment, run:
```bash
pip install --force-reinstall -U ./wheels/frequenz_{{project_name | replace("-", "_")}}-*.whl
```
This will build the wheel and then install it using `pip`.
### Cleaning
To clean the project directory, run:
```bash
pip uninstall -y frequenz_{{project_name | replace("-", "_")}}
pip uninstall -y -r requirements.txt
rm -r ./wheels
```
This will remove the [./wheels](./wheels) directory and any build artifacts.
Additionally, it will uninstall the project and its dependencies from the currently active Python
environment.
{% endif %}