Compile .pyx to (.pyd|.so) very easily.
Project description
Because writing a setup.py each time is painful.
Status
Linux:
x64 |
2.7 |
3.4 |
3.5 |
3.6 |
Windows:
x86 |
2.7 |
3.4 |
3.5 |
3.6 |
x64 |
2.7 |
3.4 |
3.5 |
3.6 |
Introduction
easycython.py
is a script that will attempt to
automatically convert one or more .pyx
files into
the corresponding compiled .pyd|.so
binary modules
files. Example:
$ python easycython.py myext.pyx
pip install easycython
will automatically create an
executable script in your Scripts/
folder, so you
should be able to simply:
$ easycython myext.pyx
or even:
$ easycython *.pyx
You can type:
$ easycython -h
to obtain the following CLI:
usage: easycython.py [-h] [--annotation] [--no-annotation] [--numpy-includes] [--no-numpy-includes] [filenames [filenames ...]] positional arguments: filenames optional arguments: -h, --help show this help message and exit --annotation --no-annotation (default: True) --numpy-includes --no-numpy-includes (default: True)
--annotation
(default) will emit the HTML Cython annotation file.--numpy-includes
(default) will add the numpy headers to the build command.Compiler flags
-O2 -march=native
are automatically passed to the compiler. I have not yet had to step through the generated C code with a debugger.
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
Built Distribution
Hashes for easycython-1.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58642848729ef3015891d67f4a396a91a53a0adeba6a5d8961df98bcd8dda7ab |
|
MD5 | 87fb0f287002db2951206bce7c90d08a |
|
BLAKE2b-256 | a3f75d30fca4718f7c0be56cc0c748c6ff10136e833e5089ab34b22ee664d902 |