Convert .py and .pyx to (.pyd | .so) very easily.
Project description
Cythonize one step faster
Introduction
cythonizer.py
is a script that will attempt to
automatically convert one or more .py
and .pyx
files into
the corresponding compiled .pyd | .so
binary modules
files. Example:
$ python cythonizer.py myext.pyx
pip install cythonizer
will automatically create an
executable script in your Scripts/
folder, so you
should be able to simply:
$ cythonizer myext.py
or even:
$ cythonizer *.pyx
You can type:
$ cythonizer -h
to obtain the following CLI:
usage: cythonizer.py [-h] [--annotation] [--numpy-includes] [--debugmode] filenames [filenames ...] positional arguments: filenames .py and .pyx files only optional arguments: -h, --help show this help message and exit --annotation (default: False) --numpy-includes (default: False) --debugmode (default: False)
--annotation
will create the HTML Cython annotation file.--numpy-includes
will add the numpy headers to the build command.Compiler flags
-O2 -march=native
are automatically passed to the compiler.
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
cythonizer-1.2.0b3.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for cythonizer-1.2.0b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28e2f78c57d6f36f212ff463b6ab26470704d158f9d1309e920738268fcb1567 |
|
MD5 | abcfc2a254157699935ac4e9b1782058 |
|
BLAKE2b-256 | be7ad588f8b724519486069d92b41189cfb8a7dca6b4542453a8cc8853ee7b4a |