File: BUILDING.md

package info (click to toggle)
python-soxr 0.5.0.post1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 256 kB
  • sloc: python: 378; cpp: 318; makefile: 15
file content (42 lines) | stat: -rw-r--r-- 758 bytes parent folder | download
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
# Building Python-SoXR

## Preparation
```
# Upgrade PIP
python -m pip install --upgrade pip

# Clone code including submodule
git clone --recurse-submodules https://github.com/dofuuz/python-soxr.git

cd python-soxr
```


## Build package(wheel)
```
pip wheel -v .
```

### (Alternative method) Build using system libsoxr
libsoxr should be installed before building. (e.g. `sudo apt install libsoxr-dev`)
```
pip wheel -v . -C cmake.define.USE_SYSTEM_LIBSOXR=ON
```
It will link libsoxr dynamically and won't bundle libsoxr in the wheel package.


## Install
Install built .whl package(not .tar.gz sdist).
```
pip install ./soxr-[...].whl
```


## Test
```
# Install dependencies
pip install pytest

# Test (using installed Python-SoXR)
python -m pytest
```