-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC: Update documentation of Installing the development version of scikit-learn #31173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jeremiedbb
merged 8 commits into
scikit-learn:main
from
vitorpohlenz:update_documentation_dev_version_from_source
Apr 12, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
51732bb
Updated doc/developers/advanced_installation.rst with for conda distr…
vitorpohlenz 464a1bf
Updated doc/developers/advanced_installation.rst with specific Window…
vitorpohlenz f35e43f
Merge remote-tracking branch 'upstream/main' into update_documentatio…
vitorpohlenz f194854
Update doc/developers/advanced_installation.rst
vitorpohlenz 88a324e
Updated Windows prompt to enable Environment using Windows BuildTools…
vitorpohlenz 5782d3b
Removed extra lines of details in the buiding from source on editable…
vitorpohlenz f3ee759
Merge remote-tracking branch 'upstream/main' into update_documentatio…
vitorpohlenz 674aba2
revert extra line
jeremiedbb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering if this is still needed now that we use meson ... the
DISTUTILS_USE_SDK
is not needed anymore with 99% probability, thevcvarsall.bat
is probably not needed.Personally, on Windows I compile inside a miniforge prompt and I never do this ...
It would be great if you could confirm @vitorpohlenz!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also tried to install CPython from python.org and use a venv in a cmd console and same thing it works fine without setting
DISTUTILS_USE_SDK
andvcvarsall.bat
. I opened #31202 to simplify the Windows instructions.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lesteve, it seems that you are right!
I have tried creating the environment again without activating or calling the VS Environment for the compiler, and the Meson Build seems to handle it quite well.
Here is the Full log of the build. You can see that in line 15 it activates the VS Env, when running the command:
pip install --editable . --verbose --no-build-isolation --config-settings editable-verbose=true
Without the :
The same message appears whether using a
conda-env
orvirtualenv
.Summarizing, it seems that if you installed the Microsoft Visual Studio Build Tools correctly, the Meson Build will handle these things, and these commands are not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vitorpohlenz for confirming this!