-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for building using CMake and for building Python pa…
- Loading branch information
1 parent
beedf6b
commit 7c50803
Showing
36 changed files
with
963 additions
and
469 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...ncludes/work_src/reusage-installation/build-model-interface-shared-artifacts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|OS|Files| | ||
|--|-----| | ||
|Linux|`libcatboostmodel.so`| | ||
|macOS|`libcatboostmodel.dylib`| | ||
|Windows|`catboostmodel.lib` and `catboostmodel.dll`| |
2 changes: 2 additions & 0 deletions
2
...des/work_src/reusage-installation/build-model-interface-static-old-artifacts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `liblibcatboostmodel.o`. This part contains symbols that require forced initialization. | ||
- `libcatboostmodel.a`. This part contains all other symbols. |
1 change: 1 addition & 0 deletions
1
catboost/docs/en/_includes/work_src/reusage-installation/catboost-src-root.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Later in this document `$CATBOOST_SRC_ROOT` refers to the root dir of the local working copy of the source code cloned from the GitHub {{ product }} repository. |
12 changes: 12 additions & 0 deletions
12
catboost/docs/en/_includes/work_src/reusage-installation/cmake-platforms.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
**Host platform** refers to the operating system and CPU architecture you run build on. | ||
|
||
**Target platform** refers to the operating system and CPU architecture you run build for (where you intend to run built artifacts like executable CLI application, dynamic library, Python extension library etc.) | ||
|
||
Possible host and target platform combinations: | ||
|
||
| Host platform | Target platform | | ||
| ------- | --------- | | ||
| Linux x86_64 | Linux or Android | | ||
| Linux non x86_64 | Linux | | ||
| macOS x86_64 or arm64 | macOS x86_64 or arm64 or universal binaries | | ||
| Windows x86_64 | Windows x86_64 | |
1 change: 1 addition & 0 deletions
1
...cs/en/_includes/work_src/reusage-installation/cmake-unix-makefiles-generator.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`Unix Makefiles` CMake generator usage on macOS and Linux is possible but not recommended because of some issues with properly taking dependencies into account. |
1 change: 1 addition & 0 deletions
1
...ocs/en/_includes/work_src/reusage-installation/cmake-visual-studio-generator.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Alternatively, on Windows you could also use `Visual Studio 16 2019` generator for CMake. In this case also specify the required toolset version when calling CMake by adding `-T version=14.28` to the command line. |
3 changes: 3 additions & 0 deletions
3
.../docs/en/_includes/work_src/reusage-installation/get-source-code-from-github.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{ product }} source code is stored as a [Git](https://git-scm.com/) repository on GitHub at <https://github.com/catboost/catboost/>. You can obtain a local copy of this Git repository by running the following command from a command line interpreter (you need to have Git command line tools installed): | ||
|
||
{{ installation--git-clone }} |
10 changes: 10 additions & 0 deletions
10
..._includes/work_src/reusage-installation/setup-build-environment-alternatives.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% note warning %} | ||
|
||
{% include [ya-make-to-cmake-switch](ya-make-to-cmake-switch.md) %} | ||
|
||
Select the appropriate build environment setup below accordingly. | ||
|
||
{% endnote %} | ||
|
||
- [For CMake](../../../installation/build-environment-setup-for-cmake.md) | ||
- [For Ya Make](../../../installation/build-environment-setup-for-ya-make.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...oost/docs/en/_includes/work_src/reusage-installation/ya-make-to-cmake-switch.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ product }} uses [CMake](https://cmake.org/)-based build process since [this commit](https://github.com/catboost/catboost/commit/c5c642ca0b8e093336d0229ac4b14c78db3915bb). Previously `Ya Make` (Yandex's build system) had been used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Build from source | ||
|
||
{% include [get-source-code-from-github](../_includes/work_src/reusage-installation/get-source-code-from-github.md) %} | ||
|
||
{% note warning %} | ||
|
||
{% include [ya-make-to-cmake-switch](../_includes/work_src/reusage-installation/ya-make-to-cmake-switch.md) %} | ||
|
||
Select the appropriate build method below accordingly. | ||
|
||
{% endnote %} | ||
|
||
## Build using CMake {#build-cmake} | ||
|
||
- [Build environment setup](../installation/build-environment-setup-for-cmake.md) | ||
- [Build native artifacts](../installation/build-native-artifacts.md) | ||
- By component: | ||
- [Build Python package](../installation/python-installation-method-build-from-source.md) | ||
- [Build CatBoost for Apache Spark](../installation/spark-installation-build-from-source-maven.md) | ||
- Build R package: | ||
- [Install from GitHub](../installation/r-installation-github-installation.md) | ||
{% if audience == "external" %} | ||
- [Install from a local Git repository](../installation/r-installation-local-copy-installation.md) | ||
{% endif %} | ||
|
||
{% if audience == "external" %} | ||
- [Build Command-line binary](../installation/cli-installation-local-copy-installation.md) | ||
{% endif %} | ||
|
||
## Build using Ya Make (for previous versions) {#build-ya-make} | ||
|
||
- [Build environment setup](../installation/build-environment-setup-for-ya-make.md) | ||
- By component: | ||
- Build Python package | ||
- [In-place build on Linux and macOS](../installation/python-installation-method-build-from-source-linux-macos-using-ya-make.md) | ||
- [In-place build on Windows](../installation/python-installation-method-build-from-source-windows-using-ya-make.md) | ||
- [Build a wheel using mk_wheel.py](../installation/python-installation-method-build-a-wheel-package.md#mk-wheel) | ||
- [Build CatBoost for Apache Spark](../installation/spark-installation-build-from-source-maven.md) | ||
- Build R package: | ||
- [Install from GitHub](../installation/r-installation-github-installation.md) | ||
{% if audience == "external" %} | ||
- [Install from a local Git repository](../installation/r-installation-local-copy-installation.md) | ||
{% endif %} | ||
|
||
{% if audience == "external" %} | ||
- [Build Command-line binary](../installation/cli-installation-local-copy-installation.md) | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.