Newer
Older
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
49
50
51
52
python_example
==============
[![Gitter][gitter-badge]][gitter-link]
[![Wheels Actions Status][actions-pip-badge]][actions-pip-link]
[gitter-badge]: https://badges.gitter.im/pybind/Lobby.svg
[gitter-link]: https://gitter.im/pybind/Lobby
[actions-pip-link]: https://github.com/pybind/scikit_build_example/actions?query=workflow%3APip
[actions-pip-badge]: https://github.com/pybind/scikit_build_example/workflows/Pip/badge.svg
An example project built with [pybind11](https://github.com/pybind/pybind11).
Installation
------------
**On Unix (Linux, macOS)**
- clone this repository
- `pip install ./scikit_build_example`
**On Windows (Requires Visual Studio 2017)**
- For Python 3.5+:
- clone this repository
- `pip install ./scikit_build_example`
- For Python 2.7:
- Pybind11 + Scikit-Build does not support Python 2.7 on Windows.
CI Examples
-----------
There are examples for CI in `.github/workflows`. A simple way to produces
binary "wheels" for all platforms is illustrated in the "wheels.yml" file,
using [`cibuildwheel`][].
License
-------
pybind11 is provided under a BSD-style license that can be found in the LICENSE
file. By using, distributing, or contributing to this project, you agree to the
terms and conditions of this license.
Test call
---------
```python
import python_example
python_example.add(1, 2)
```
[`cibuildwheel`]: https://cibuildwheel.readthedocs.io