Utilities for packing multiple pyx files into a single Cython extension
Project description
snakehouse
snakehouse is a tool to pack mutiple .pyx files into a single extension.
Inspired by this StackOverflow discussion.
Tested and works on CPython 3.5-3.9, both Windows and Linux. It doesn't work on PyPy.
Contributions most welcome! If you contribute, feel free to attach a change to CONTRIBUTORS.md as a part of your pull request as well! Note what have you changed in CHANGELOG.md as well!
Usage notes
Take a look at example on how to multi-build your Cython extensions.
Don't place modules compiled that way in root .py file's top level imports. Wrap them in a layer of indirection instead!
This applies to unit tests as well!
When something goes wrong (eg. the application throws an unhandled exception)
the built module has a tendency to dump core.
Try to debug it first by passing dont_snakehouse=True
to your
modules in the debug mode.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for snakehouse-1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49bee75440bacf246f231b176df55138ef5623df83542988cfb7c4c6227c9e63 |
|
MD5 | 72ecfe7751e440f24dd05bd55ff28e51 |
|
BLAKE2b-256 | b33aa8e6f9563e1d2994079df8e5375c283f7ecd61f1f2e030d0d8791ed7ab1b |