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

How to run pip from checkout? #5747

Closed
techtonik opened this issue Sep 1, 2018 · 12 comments
Closed

How to run pip from checkout? #5747

techtonik opened this issue Sep 1, 2018 · 12 comments
Labels
auto-locked Outdated issues that have been locked by automation type: question User question

Comments

@techtonik
Copy link
Contributor

What's the problem this feature will solve?
Testing my patch that I rebased after several years on a machine with no development environment.

Describe the solution you'd like
https://pip.pypa.io/en/stable/development/ page should list how to current pip from git clone. Ideally as an OS independent one-liner.

@pfmoore
Copy link
Member

pfmoore commented Sep 1, 2018

What's wrong with pip install -e .?

@techtonik
Copy link
Contributor Author

I don't want to install development version to ruin my system. There should be a way to execute dev pip with a single command from checkout that doesn't affect anything outside project directory.

@RonnyPfannschmidt
Copy link
Contributor

whipspers virtualenv

@pradyunsg
Copy link
Member

pradyunsg commented Sep 2, 2018

Create a virtualenv or let tox set them up for you? tox will create the environment and then you can run pip from within it - ./.tox/py36/bin/pip.

As an aside, I suggest you use the latest version of the development docs, since they contain more up-to-date instructions: https://pip.pypa.io/en/latest/development/

@techtonik
Copy link
Contributor Author

Yea, I know, no need to whisper. virtualenv, virtualenvwrapper, venc, lxc etc. But I feel tired setting this up every time, and this is not an one-liner, because every I need to keep the location of the executable in my head, and the space is running out as fast as the time.

tox hack is good. Maybe it is even worth to make it official - if you need separate environment for running tests anyway, why not to reuse that for development?

I didn't notice that I am using old docs version. I don't see the point in syncing docs to version of pip. Better have always updated docs that include historical info. Thanks for the pointers though,

@techtonik
Copy link
Contributor Author

No tox and no virtualenv is installed here. Could be nice if people can just run pip from git clone without all this yak shaving,

@RonnyPfannschmidt
Copy link
Contributor

@techtonik so fix it with a patch or fix it by providing a tool that fixes it for all of python

@techtonik
Copy link
Contributor Author

BTW, why nobody recommends python src/pip? Looks like it just works.

@pfmoore
Copy link
Member

pfmoore commented Sep 2, 2018

@techtonik Because frankly nobody but you seems to be so resistant to the various approaches that have already been suggested. If you now have a solution that satisfies you, can this issue be closed?

techtonik added a commit to techtonik/pip that referenced this issue Sep 3, 2018
@techtonik
Copy link
Contributor Author

@techtonik so fix it with a patch or fix it by providing a tool that fixes it for all of python

Done in #5752. I included explanation that clears my doubts and virtualenv section for comparison. I frankly don't understand why anyone need to use virtualenv with pip. It always looked to me really weird with all this bashery activations.

@pradyunsg
Copy link
Member

I'll go ahead and close this since we have a PR for discussion on the next steps.

@lock
Copy link

lock bot commented Jun 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 1, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: question User question
Projects
None yet
Development

No branches or pull requests

4 participants