Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

jacquemier/cmake_python_wrapper

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
10 Commits
 
 
 
 
 
 

Repository files navigation

cmake_python_wrapper

C Python wrapper generated by CMake example This example was built from this BLOG: https://bloerg.net/2012/11/10/cmake-and-distutils.html

Installation

Note: INSTALL_DIR represents your target installation directory

git clone https://github.com/jacquemier/cmake_python_wrapper.git
mkdir build
cmake ../cmake_python_wrapper/v2 -DCMAKE_INSTALL_PREFIX=INSTALL_DIR
make install

Test

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:INSTALL_DIR/lib
python

>>> import foo
>>> foo.square(10)

About

C python wrapper entirely generated by CMake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.