A setuptools intrgration for CMake built extension modules
Project description
# Cmake meets setuptools
## Try the example
The example module foo contains the methods add and inverse. The inverse method is part of an external C/C++ library against which is linked after module compilation.
### Build the example module `bash cd example `
`bash python3 setup.py bdist_wheel # build as wheel python3 setup.py build_ext -i # build in-place `
### Test the example module `bash python3 -c "import foo; print(foo.inverse(0.5))" `
This should compile the static library deadbeef, compile the foo.bar submodule and print 2.0 upon execution.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
setuptools-cmake-1.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_cmake-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ade0eeb33d5e9e94437a7a3261596ac76af4d9d3bc5842085e9b69ae1a70f5d8 |
|
MD5 | 2e170299b307a16f64e7bd13d58211f8 |
|
BLAKE2b-256 | 29311227e445d56e69d15bad3ac24502f1d628bc32c3b4cc14df11632e122475 |