diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..071d2e7 --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | # A tiny demo for a Python module in C | ||
| 2 | |||
| 3 | This repo contains a Python module written in C with only one function. | ||
| 4 | |||
| 5 | Works on my machineā¢. To make it works on yours: | ||
| 6 | |||
| 7 | 1. Install the python development package. It is usually called `python3-dev` | ||
| 8 | or `python3-devel`. | ||
| 9 | 2. Compile this module with `make`. | ||
| 10 | 3. Open `python` and enjoy! | ||
| 11 | |||
| 12 | ``` | ||
| 13 | >>> import sum_module | ||
| 14 | >>> sum_module.sum_from_c(23, 19) | ||
| 15 | 42 | ||
| 16 | ``` | ||
