Pip install forked github-repo

Question:

I’m working on a project and need a little different functionality from the package sklearn. I’ve forked the repo and pushed my changes. I know that I can install from github via pip:

pip install git+git://github.com/wdonahoe/scikit-learn-fork.git@master

and then I can install the package with setup.py:

python setup.py install

However, I am confused about what to do after this step. Running setup.py creates some .egg-info folders and .egg-links files in …/dist-packages/, but I am unsure what to do with them. Ideally, I’d like to go into my project in …/projects/my_project and say something like

from sklearn-my-version import <stuff> 

or switch it out with just

from sklearn import <stuff>

I am also a little confused because a lot of resources on this issue mention using easy_install, which I thought pip replaced.

Asked By: wdonahoe

||

Answers:

try again using just (-e flag lets you git pull updates by installing it as a git repo)

pip install -e git+git://github.com/wdonahoe/scikit-learn-fork.git@master#egg=scikit-learn

more on eggs:
http://mrtopf.de/blog/en/a-small-introduction-to-python-eggs/

Answered By: jnshbr
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.