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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file setuptools-cmake-1.1.tar.gz.

File metadata

  • Download URL: setuptools-cmake-1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for setuptools-cmake-1.1.tar.gz
Algorithm Hash digest
SHA256 df951bff7c407c876e0ec15e751604d4c8736fdec50919c90e184b0db9d7b970
MD5 ddffc55acfe4369ead47f755ed2cb116
BLAKE2b-256 49c40d4c103c1b28b7ca95e5bf89dc18f38fc5884cc74cef6ea2810b769030da

See more details on using hashes here.

File details

Details for the file setuptools_cmake-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for setuptools_cmake-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ade0eeb33d5e9e94437a7a3261596ac76af4d9d3bc5842085e9b69ae1a70f5d8
MD5 2e170299b307a16f64e7bd13d58211f8
BLAKE2b-256 29311227e445d56e69d15bad3ac24502f1d628bc32c3b4cc14df11632e122475

See more details on using hashes here.

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