A CLI tool for compiling python
Project description
pycompile
""" _ _
_ __ _ _ ___ ___ _ __ ___ _ __ (_) | ___
| '_ \| | | |/ __/ _ \| '_ ` _ \| '_ \| | |/ _ \
| |_) | |_| | (_| (_) | | | | | | |_) | | | __/
| .__/ \__, |\___\___/|_| |_| |_| .__/|_|_|\___|
|_| |___/ |_|
"""
A CLI tool for compiling python source code using Cython or Nuitka.
Table of contents
Local-development
For local development run the following command
make setup-local-dev
All available make
commands
make help
Usage
pycompile -i your_python_files --clean-source --engine nuitka
By default, the Cython is being used as the default compiler.
Syntax | Description |
---|---|
--input-path PATH |
by default it will exclude any test and __init__.py files |
--clean-source |
Deletes the sources files. |
--keep-builds |
Keeps the temp build files. |
--clean-executables |
Deletes the shared objects (.so ) files. |
--engine |
Can be cython or nuitka . |
-exclude-glob-paths |
Glob file patterns for excluding specific files. |
--verbose |
Increase log messages. |
Compiling the examples
For compiling the examples
use the following command:
pycompile -i examples
which by default, deletes any temp build files and keeps the source files.
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
pycompile-0.1.0.tar.gz
(10.1 kB
view hashes)
Built Distribution
pycompile-0.1.0-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for pycompile-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c160f44cecf57aaee9f0cd30319b38d286d41107c6bace41c3583fef31ca0fd2 |
|
MD5 | f6d1f506382130f026dfbaa69af72248 |
|
BLAKE2b-256 | af9da33800d01a45677af247e18eaf6008a22db328fef170a0ba7f57c6f416de |