A tiny tool to convert python files to dynamic libraries
Project description
pycodepack
Compile python code to dynamic library using Cython
.
Installation
pip install pycodepack
Usage
After installation, there is a runable module called py2dylib
. Suppose your code is in /home/code/test_project
and run.py
is the entrypoint file, you can convert the python files in that folder to dynamic libraries by running
python -m py2dylib --folder /home/code/test_project --ignore run.py
If there is no /home/code/test_project_build
here, it will copy the folder and compile the python code in that folder. Otherwise, it will try append _
to the folder until it isn't exist. It's out-of-project building. You can specify --inplace
option to build in original folder.
Besides, thepycodepack
is running under incremental building
mode by default, which means it only builds those files that changed since last building. You can change it by specifying --build_mode
option.
Run python -m py2dylib --help
for more information.
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
Built Distribution
Hashes for pycodepack-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80c1c89baf88aa97948bf5d4ffbb325ef4e10d5ebcffa8275218a68e8496750c |
|
MD5 | 19142e97ecdacfdee708e3e5c02f3c9f |
|
BLAKE2b-256 | 23b663e4bc5e83f32a5cb9aea6b72d7fa3fafb3e41c36dfad6934996acb8aa84 |