Skip to content

quantopian/libpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

be927ed Â· Jun 25, 2020
Jun 25, 2020
Jun 25, 2020
Mar 7, 2020
May 21, 2019
Jun 25, 2020
Jun 25, 2020
Apr 20, 2020
Feb 24, 2020
Jun 23, 2020
Apr 26, 2018
Jun 23, 2020
Apr 30, 2018
Nov 12, 2019
Jun 25, 2020
Jun 25, 2020
Jun 24, 2020
Jun 25, 2020
Apr 16, 2019
Apr 20, 2020
Jun 25, 2020

Repository files navigation

libpy

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