Python package with binary code
We will use the code we created using Cython to show how to build a package that combines Python code with precompiled code. We will generate a Wheel
file.
We create a package called wheel_package_compiled
that extends the previous example package, wheel_package
, with the code presented to be compiled in Cython.
The code is available in GitHub at https://github.com/PacktPublishing/Python-Architecture-Patterns/tree/main/chapter_11_package_management/wheel_package_compiled.
The structure of the package will be like this:
wheel_package_compiled
├── LICENSE
├── README
├── src
│ ├── __init__.py
│ ├── submodule
│ │ ├── __init__.py
│ │ └── submodule.py
│ ├── wheel_package...