Skip to main content

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


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)

Uploaded Source

Built Distribution

setuptools_cmake-1.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page