diff options
author | Yth - Arnaud <yth@ythogtha.org> | 2025-02-08 08:20:05 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2025-02-08 08:34:11 +0700 |
commit | 81cf7850a27a7260399ec43c1ccf6c1b5b7cc71c (patch) | |
tree | a3a4a11e1263f955d6263e1ced8fd5391f5e5947 /python/python3-cython-opt/README | |
parent | cd146b2faf7b76d19e5c110f280486be12790fe3 (diff) |
python/python3-cython-opt: Added (Superset of Python).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-cython-opt/README')
-rw-r--r-- | python/python3-cython-opt/README | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/python/python3-cython-opt/README b/python/python3-cython-opt/README new file mode 100644 index 0000000000..1e34fcb910 --- /dev/null +++ b/python/python3-cython-opt/README @@ -0,0 +1,21 @@ +The Cython language makes writing C extensions for the Python language +as easy as Python itself. +Cython is a source code translator based on Pyrex, but supports more +cutting edge functionality and optimizations. + +The Cython language is a superset of the Python language (almost all +Python code is also valid Cython code), but Cython additionally supports +optional static typing to natively call C functions, operate with C++ +classes and declare fast C types on variables and class attributes. +This allows the compiler to generate very efficient C code from Cython +code. + +This makes Cython the ideal language for writing glue code for external +C/C++ libraries, and for fast C modules that speed up the execution of +Python code. + +You have to add those lines in your SlackBuild to make use of this +newer cython: +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH="/opt/python$PYVER/site-packages:/opt/cython/python$PYVER/site-packages" +export PATH="/opt/cython/bin:$PATH" |