Skip to content

[docs] update and simplify installation docs - #6536

Merged
StrikerRUS merged 4 commits into
masterfrom
docs/install-docs
Jul 14, 2024
Merged

StrikerRUS merged 4 commits into
masterfrom
docs/install-docs

Conversation

@jameslamb

@jameslamb jameslamb commented Jul 10, 2024 •

Copy link
Copy Markdown
Member

Proposes the following changes to installation docs:

The overall goals of this PR are:

  • document the CUDA / GPU support in conda-forge packages
  • reduce maintenance burden, complexity, and the risk of outdated information in installation docs

Specific changes:

Notes for Reviewers

ref #5419 (comment)

@jameslamb jameslamb changed the title WIP: [docs] update and simplify installation docs [docs] update and simplify installation docs Jul 10, 2024
@jameslamb
jameslamb marked this pull request as ready for review July 10, 2024 23:25

@StrikerRUS StrikerRUS left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found some other places across the repo where CMake version is mentioned.

Comment thread docs/FAQ.rst Resolved
Comment thread python-package/README.rst Resolved
Comment thread python-package/README.rst

For **Linux** and **macOS** users, installation from sources requires installed `CMake`_.

For **Linux** users, **glibc** >= 2.28 is required. Also, in some rare cases you may need to install OpenMP runtime library separately (use your package manager and search for ``lib[g|i]omp`` for doing this).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this as well?
For **Linux** users, **glibc** >= 2.14 is required for LightGBM ``<=3.3.3`` and **glibc** >= 2.28 is required for newer versions.
https://github.com/microsoft/LightGBM/blob/52d40f3ba6952fee82cf63d0ed7f0bf9f279236a/python-package/README.rst?plain=1#L25

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think that makes sense.

At first I'd intentionally left this one in, because it is true that on systems where you have older versions of GLIBC, pip install lightgbm will return an sdist (that'll have to be compiled) instead of a wheel.

But looking through it again, I do see that the other sections that explicitly talk about sdists (anything about passing --no-binary lightgbm) are nested underneath this "Install from PyPI" heading. And these GLIBC requirements don't affect your ability to build from an sdist.

I've removed this in 8cee2d6.

Comment thread python-package/README.rst
:target: https://pepy.tech/project/lightgbm
.. |API Docs| image:: https://readthedocs.org/projects/lightgbm/badge/?version=latest
:target: https://lightgbm.readthedocs.io/en/latest/Python-API.html
.. _CMake: https://cmake.org/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, missed this one! Removed in 8cee2d6

@jameslamb
jameslamb requested a review from StrikerRUS July 13, 2024 22:55

@StrikerRUS StrikerRUS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for reducing maintenance burden!

@StrikerRUS
StrikerRUS merged commit 830763d into master Jul 14, 2024
@StrikerRUS
StrikerRUS deleted the docs/install-docs branch July 14, 2024 12:47
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants