Convert `.pyx` to `(.pyd|.so)` very easily.
Project description
Because writing a setup.py
each time is painful.
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 Distributions
Hashes for easycython-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9a4e91eebc126ef14476ae9d50328f2e8dafe5c52da1407741e636a43e4a344 |
|
MD5 | f8f1e5bbdd8e8a4160b7e516f06f7ec6 |
|
BLAKE2b-256 | 67a0434b0dec4e7f486816a6a24a1ea04b787e2f6c52392083ab4d22dbb51769 |
Hashes for easycython-1.0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f117889c7959c55f4fd903f1d154f5396823f2f1ee4487e960fe0f39603a2d1 |
|
MD5 | 4cb374c3f9d31aaf3036a4acc9cb3918 |
|
BLAKE2b-256 | b85c3012bb35c24e61a01297dcd7895d74ce94e43340105edfd0a4674a8262b1 |