Back to Catboost

Build a wheel package

catboost/docs/en/installation/python-installation-method-build-a-wheel-package.md

1.2.101.5 KB
Original Source

Build a wheel package

{% include supported-versions %}

{% if audience == "internal" %}

{% include internal-note__use-outside-arcadia %}

{% endif %}

Build using setup.py bdist_wheel or build {#standard}

Since this commit CatBoost uses standard Python procedures.

See documentation here.

Build using mk_wheel.py {#mk-wheel}

Recommended only for versions previous to this commit. For newer versions build using setup.py bdist_wheel or build.

To build a self-contained Python Wheel:

  1. Setup build environment
  2. Run the catboost/catboost/python-package/mk_wheel.py script.

Optional parameters:

ParameterDescription
-DCUDA_ROOTThe path to CUDA. This parameter is required to support training on GPU.

For example, to build and install a wheel on Windows for Anaconda with training on GPU support run:

python.exe mk_wheel.py -DPYTHON_INCLUDE="/I C:\Anaconda2\include" -DPYTHON_LIBRARIES="C:\Anaconda2\libs\python27.lib" -DCUDA_ROOT="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0"
C:\Anaconda2\Scripts\pip.exe install catboost-0.1.0.6-cp27-none-win_amd64.whl