Skip to content

jackeown/PythonCExtensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PythonCExtensions - A minimal example of C and C++ extensions for Python.

To build the C/C++ extension module, run the following:

python setup.py build

This will create a build directory containing a lib directory. If the shared object file (.so extension on linux) inside this lib directory is in your pythonpath, then you should be able to import and use your new module from python like this:

import hello
hello.sayHello("World")

About

A minimal example of C and C++ extensions for Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published