Skip to main content

Utilities for writing C++ extension modules.

Project description

GitHub Actions status

Utilities for writing C++ extension modules for CPython.

Requirements

libpy supports:

  • macOS/Linux

  • Python >=3.5

libpy requires:

  • gcc>=8 or clang>=10

  • numpy>=1.11.3

libpy also depends on:

  • pcre

  • google sparsehash

To install these dependencies:

ubuntu

$ sudo apt install libpcre2-dev libsparsehash-dev

macOS

$ brew install pcre2 google-sparsehash

Install

To install for development:

$ make

Otherwise, pip install libpy, making sure CC and CXX environment variables are set to the the right compiler.

Tests

To run the unit tests, invoke:

$ make test

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

libpy-0.2.1.tar.gz (180.5 kB view hashes)

Uploaded Source

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