Build¶
This section focuses and the build of the pyRat Python module and its wheels.
The result of building pyRat is a Python wheel. Python wheels are the modern way of distributing Python packages in a more controlled and isolated manner than the previous Python eggs.
The idea is to allow users to very easily transport
wheels by simply moving a file around and using
pip to install the package into any environment:
python -m pip install ./pyrat-....whl
numpy being the only external Python dependency
of the pyrat Python module installing it is
very straightforward once a wheel is acquired.
For simpler user experience pyRat wheels directly ships CUDA libraries used by Rat, avoiding the need for the user to install the whole toolkit on the machine at hand. This however comes at the cost of a quite beefy 430MB wheel file whereas simpler wheels can be just a few MB in size.
Build can of course be modified to suit specific needs if required by modifying sources accordingly.
The following subsections describe build
steps in order to end up with the coveted
pyrat-1.0.0-cp314-cp314-win_amd64.whl
wheel file, in that case:
on Windows
with CPython
v3.14with pyRat
v1.0.0
PYRAT BUILD CONTENTS