-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC: Add installation mode in How to contribute section #12815
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
Comments
It's true that those guides are not accurate. I personally do |
May be standard steps should be defined (for each OS ?) so that the development environment is easy to install. I think the perimeter of the guide should be self-consistent. Here are the whole steps I used:
to record your changes in Git, then push them to GitHub with: Questions:
|
I wouldn't add the prefix, why would you want to do that? But yes, 4 is missing from the docs right now. Interestingly it's in the documentation section: And in the "building from source" section: We should probably link to the "building from source" section here? |
Uh, I am adding the prefix to throw the dev repository away from the scikit-learn's stable version. I guess from your answer there is a better a way. In the guide, I will remove the prefix in the 4th steps and add the link to the "building from source" section for more details. Could be a good first improvement. |
Sorry, I'm a bit slow. Can you explain what you mean by that? |
I want to currently work with a stable version of scikit-learn (0.20), but also would like to contribute to the development version. Then I installed 0.20 in a user local directory (~/.local/lib) and the dev one in another one (/other/path). In order to install the dev version in editable mode, I used the |
A better way of achieving this can be done with virtual environments: installing the dev version from sources in one environment and the stable version (with pip from PyPi or conda) in another one. It's generally recommended to avoid manually setting |
Oh OK! Thanks @rth, I'm gonna try this. |
This thread is actually incredibly helpful.. Easy set of steps - all listed with just the amount of explanation needed to start contributing |
Description
Wanted to start contributing to scikit-learn. Then, I followed the Way to contribute section, but I failed while running the example scripts. I posted a question on stackOverflow to get an answer. The result was I did not get the good installation method.
May be a reminder of Building the library from source + editable installation could be added in the documentation to make a complete recipe.
Steps/Code to Reproduce
Follow actual documentation
Expected Results
Following the "how to contribute" section of the documentation provide working dev environment
Actual Results
Installation method as editable from source is missing to completely work
Versions
scikit-learn v0.20.1
The text was updated successfully, but these errors were encountered: