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.1.tar.gz
(9.3 kB
view hashes)
Built Distribution
pycompile-0.1.1-py3-none-any.whl
(12.9 kB
view hashes)
Close
Hashes for pycompile-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe855d7c3df4e8585ae5bdfe4d0bd8a200e9343e7b071436cdb18b66b1a2dbf |
|
MD5 | aca6ab158ce264255ab9792f804fd749 |
|
BLAKE2b-256 | 1d3c76e1faf6d38df3b61bc51653ca2bae12e88419ee8bfe674b3ddd2a69e2fc |