Skip to content
This repository has been archived by the owner on Apr 15, 2018. It is now read-only.
/ pyswig Public archive

My first attempt to write a python extension in c with the help of cmake and swig.

License

Notifications You must be signed in to change notification settings

jhxie/pyswig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cmake SWIG Python Extension

Overview

Just a simple example I have written for demonstrating how to use swig in cmake.

Build Instructions

After installing needed dependencies, issuing:

mkdir build
cmake -Bbuild -H.
make -C build
sudo make -C build install
python3 << EOF
import example
example.beep()
EOF

The generated example python module only works for python3.

License

Copyright © 2016 Jiahui Xie
Licensed under the GNU General Public License v3.
Distributed under the GNU General Public License v3.

About

My first attempt to write a python extension in c with the help of cmake and swig.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published