Remalloc / py_compiler

Compile python source code to dynamic library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py_compiler

Compile Python source code into a dynamic library.

Installation

Place the compiler.py file in your project root path.

# Install gcc and python3
pip install Cython

Getting Started

Configure the "EXCLUDE" variables in compiler.py.

Do not compile the entry file, you must add it to "EXCLUDE"

All __init__.py files will be ignored because Cython 2.9 has some problems under the Win32 platform.

# The default compiling directory is the base directory of "compiler.py".
python compiler.py

Deployment

  • Only supports Linux,Win32 and MacOS platforms.
  • Requires Python version v3.6 or higher.

About

Compile python source code to dynamic library

License:MIT License


Languages

Language:Python 100.0%