Skip to main content

A collection of Pythonizations for cppyy

Project description

Test

A collection of Pythonizations for cppyy.

These mostly work around known limitations of cppyy or provide some reusable extensions such as Python pickling of C++ classes.

Current Release Info

We release this package very frequently, typically with most pushes to the master branch.

Name Downloads Version Platforms
Nightly Build Conda Downloads Conda Version Conda Platforms

Install with Conda

You can install this package with conda. Download and install Miniconda, then run

conda config --add channels conda-forge
conda create -n cppyy -c flatsurf cppyy cppyythonizations
conda activate cppyy

Install with pip

pip install cppyythonizations

Build from the Source Code Repository

We are following a standard autoconf setup, which is a bit odd in the Python world. You can build this library with the following:

git clone --recurse-submodules https://github.com/flatsurf/cppyythonizations.git
cd cppyythonizations
./bootstrap
./configure
make
make check # to run our test suite
make install # to install into /usr/local

Note that this is a pure Python library, so essentially all this does is setup a setup.py file and run it.

Build from the Source Code Repository with Conda Dependencies

To build this package, you need a fairly recent C++ compiler and probably some packages that might not be readily available on your system. If you don't want to use your distribution's packages, you can provide these dependencies with conda. Download and install Miniconda, then run

git clone --recurse-submodules https://github.com/flatsurf/cppyythonizations.git
cd cppyythonizations
conda create -n cppyythonizations-build
conda env update -n cppyythonizations-build -f environment.yml
conda activate cppyythonizations-build
./bootstrap
./configure
make

Build from the Source Code Repository with Conda

The conda recipe in recipe/ is built automatically as part of our Continuous Integration. If you want to build the recipe manually, something like the following should work:

git clone --recurse-submodules https://github.com/flatsurf/cppyythonizations.git
cd cppyythonizations
conda activate root
conda config --add channels conda-forge
conda config --add channels flatsurf
conda install conda-build conda-forge-ci-setup=2
export FEEDSTOCK_ROOT=`pwd`
export RECIPE_ROOT=${FEEDSTOCK_ROOT}/recipe
export CI_SUPPORT=${FEEDSTOCK_ROOT}/.ci_support
export CONFIG=linux_
make_build_number "${FEEDSTOCK_ROOT}" "${RECIPE_ROOT}" "${CI_SUPPORT}/${CONFIG}.yaml"
conda build "${RECIPE_ROOT}" -m "${CI_SUPPORT}/${CONFIG}.yaml" --clobber-file "${CI_SUPPORT}/clobber_${CONFIG}.yaml"

You can then try out the package that you just built with:

conda create -n cppyythonizations-test --use-local cppyythonizations
conda activate cppyythonizations-test

Maintainers

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

cppyythonizations-1.2.3.tar.gz (267.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cppyythonizations-1.2.3-py3-none-any.whl (360.2 kB view details)

Uploaded Python 3

File details

Details for the file cppyythonizations-1.2.3.tar.gz.

File metadata

  • Download URL: cppyythonizations-1.2.3.tar.gz
  • Upload date:
  • Size: 267.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for cppyythonizations-1.2.3.tar.gz
Algorithm Hash digest
SHA256 fc0a6cf2ce59e48bb5b540b6d019b2356f093db17ecb109ec10cfcd35b27dddc
MD5 40fbd9b6504dc030a17f049edaab2d20
BLAKE2b-256 895914fe8240dd3e4210b4b2e3adf0ea2aeacef7d48f1b6105036d276ac6f68b

See more details on using hashes here.

File details

Details for the file cppyythonizations-1.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cppyythonizations-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a08bb4fbaf0fc6b980211e7b549b06869f5b9f9cb835b3ab6224cae5905fd8c2
MD5 626f8767882d5c99f75373a49fa0b451
BLAKE2b-256 f156da5589a7d33e0086492059d570d45b364b96aebf1a350d2dedd0161e797b

See more details on using hashes here.

Supported by

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