Skip to content
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

Possibly better installation instruction for developers #53

Closed
derekbrokeit opened this issue Jan 17, 2013 · 8 comments
Closed

Possibly better installation instruction for developers #53

derekbrokeit opened this issue Jan 17, 2013 · 8 comments

Comments

@derekbrokeit
Copy link

Right now, the documentation explains how to use pip to install the develop tarball. The following is probably the best method because it will allow users to fiddle with it and then commit it for pull-requests. I don't know if you want this in documentation or not, but it is helpful, so I add it here:

mkdir ~/.pip
cd ~/.pip
pip install -e git+https://github.com/Lokaltog/powerline.git@develop#egg=powerline

This creates a directory ~/.pip/src/powerline which is also a git repository for development purposes. It can be edited and it affects powerline instantaneously.

@Lokaltog
Copy link
Member

Cool! Is this something that is supposed to be installed in addition to the develop tarball, or is it a replacement?

@derekbrokeit
Copy link
Author

It's a replacement. I think it symlinks (or similar) to your typical python environment directory where the tarball would normally be installed.

@Lokaltog
Copy link
Member

Nice! I'll check it out and update the docs.

@CodeSturgeon
Copy link

Personally, I cloned the repo and did python setup.py develop. That basically just add's the repo PATH to the PYTHONPATH. Now all I have to do is git pull in the repo and I'm using the latest across the system. Pretty much the same affect just a different approach.

@ZyX-I
Copy link
Contributor

ZyX-I commented Jan 21, 2013

@CodeSturgeon You can clone the repo where you want and still use pip: pip install --user -e /path/to/repo. It is doing all the necessary setup (almost exactly what you did manually, but in one turn; though using ~/.local/lib64/python2.7/site-packages/Powerline.egg-link in place of modifying PYTHONPATH).

@CodeSturgeon
Copy link

@ZyX-I I don't manually modify the PYTHONPATH, python setup.py develop does that for me by making a .egg-link. Doing pip -e at it's heart is pretty much just doing python setup.py develop along with some book keeping.

These methods all have the same result, they are just different ways of getting there 😉

@Lokaltog
Copy link
Member

I think I'll leave this out of the docs as I don't think this applies to any significant amount of users and because it appears that different devs have different ways of accomplishing this.

@derekbrokeit
Copy link
Author

No problem, as @ZyX-I says, @CodeSturgeon's method has the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants