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.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for setuptools_cmake-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adde519766f27a0f613432203d7c00e20487ac660f46cf7243d7b316c23e6eff |
|
MD5 | 9cf30f099cb26760d8f5f53fed7c7111 |
|
BLAKE2b-256 | a56ffe9f0cd3099969e2aca557977d201657c8c04c3fb3c2dfca6cf5dce0b6dc |