This repository has been archived on 2025-04-15. You can view files and clone it, but cannot push or open issues or pull requests.
2023-05-30 14:20:12 +02:00

37 lines
631 B
Markdown

# python_cpp_example
Minimal example building a C++ python extension.
Useful links:
* [Using NumPy C-API](https://numpy.org/doc/stable/user/c-info.html)
### Build instructions
**Simplified build using make**
```bash
make #build c extension inplace
```
**Manual build**
```bash
#build in place and use from the same folder
#sometimes necessary to remove build folder and .so
#by hand
python setup.py build_ext --inplace
```
To use make sure that the .so and potentially python files are in PYTHONPATH (or installed in developer mode)
```bash
#conda
conda develop install .
#or with pip
pip install --editable .
```