-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
DOC small documentation changes in the advanced installation guide #26394
DOC small documentation changes in the advanced installation guide #26394
Conversation
@Micky774 after reading the PEP 517 documentation I still don't have a good understanding of what it does. So I just added a short explanation for why it is needed when building from source. Let me know if it's correct or if you would like to see any other changes. |
@adrinjalali @marenwestermann do either of you have a link to a discussion regarding the necessity of |
I'm not sure, but it seems pep517 is the I really don't know why, but it seems they're related. There are a lot of related issues on the |
Are we sure that the PEP517 flag is necessary? I created an environment from scratch and tried the instruction and it seems to work. Here is the end of the output of my installation: Editable install will be performed using a meta path finder.
Options like `package-data`, `include/exclude-package-data` or
`packages.find.exclude/include` may have no effect.
adding '__editable___scikit_learn_1_4_dev0_finder.py'
adding '__editable__.scikit_learn-1.4.dev0.pth'
creating '/tmp/pip-wheel-5fmi1pu2/.tmp-pxhfybdj/scikit_learn-1.4.dev0-0.editable-cp39-cp39-linux_x86_64.whl' and adding '/tmp/tmpf4n112bkscikit_learn-1.4.dev0-0.editable-cp39-cp39-linux_x86_64.whl' to it
adding 'scikit_learn-1.4.dev0.dist-info/COPYING'
adding 'scikit_learn-1.4.dev0.dist-info/METADATA'
adding 'scikit_learn-1.4.dev0.dist-info/WHEEL'
adding 'scikit_learn-1.4.dev0.dist-info/top_level.txt'
adding 'scikit_learn-1.4.dev0.dist-info/RECORD'
/home/glemaitre/miniconda3/envs/sklearn-env/lib/python3.9/site-packages/setuptools/command/editable_wheel.py:348: InformationOnly: Editable installation.
!!
********************************************************************************
Please be careful with folders in your working directory with the same
name as your package as they may take precedence during imports.
********************************************************************************
!!
wheel_obj.write_files(unpacked)
Building editable for scikit-learn (pyproject.toml) ... done
Created wheel for scikit-learn: filename=scikit_learn-1.4.dev0-0.editable-cp39-cp39-linux_x86_64.whl size=6794 sha256=ce84def516ebb2249d15425ed2686a4d2725cbb503bc7a131698042c908d7bf6
Stored in directory: /tmp/pip-ephem-wheel-cache-g_whz2ov/wheels/ee/6e/16/0f21158be67077cef3936c48c77c622576e2a4aca15b696e07
Successfully built scikit-learn
Installing collected packages: threadpoolctl, joblib, scikit-learn
Successfully installed joblib-1.2.0 scikit-learn-1.4.dev0 threadpoolctl-3.1.0 |
That's what I'm doubting as well. I believe at some point in discussion @rgommers mentioned that it should not be necessary nowadays (I don't recall the specifics). I'm not sure it is actually required at this point, or if it is required only in specific cases? |
With old |
Yes, we definitely need the pep517 flag. Without the flag, every build will take as long as a fresh build, instead of only building the changed files. You can replicated that by trying it twice. |
Oh I see. Since I am always using |
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'm okay with merging the PR as-is. We can always include additional notes later if we have some phrasing we'd really like to communicate to users.
Thank you very much @marenwestermann 😄! |
Thanks a lot everyone for the discussion! :) |
Reference Issues/PRs
follow up from PR #26334
towards #25985
What does this implement/fix? Explain your changes.
pip install
commands uniform in the contributing to scikit-learn documentation--no-use-pep517
flag is needed when building from sourceAny other comments?
ping @Micky774