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

Allow installation from source #174

Open
varac opened this issue Aug 23, 2018 · 4 comments
Open

Allow installation from source #174

varac opened this issue Aug 23, 2018 · 4 comments

Comments

@varac
Copy link

varac commented Aug 23, 2018

I'd like to be able to install latest master from a git repo, i.e.

pipsi install git+https://github.com/0k/shyaml

Would this be possible to implement ?

@sersorrel
Copy link

That should work already, I think.

@varac
Copy link
Author

varac commented Sep 20, 2018

⏻  ~  » pipsi install git+https://github.com/0k/shyaml
Usage: pipsi install [OPTIONS] PACKAGE

Error: When installing from URLs you need to add an egg at the end.  For instance git+https://.../#egg=Foo

Maybe it works but I don't know how to do it. Can you pls provide an example ?
At least the instructions/workflow are not user friendly:

you need to add an egg at the end

How would I know what egg I need (and why?) ?

@sersorrel
Copy link

This is described in the Pip documentation:

The "project name" component of the url suffix "egg=-" is used by pip in its dependency logic to identify the project prior to pip downloading and analyzing the metadata.

tldr: add #egg=shyaml to the end of your URL.

Pipsi is enforcing this here:

pipsi/pipsi/__init__.py

Lines 223 to 226 in b43229d

if not url.fragment.startswith('egg='):
raise click.UsageError('When installing from URLs you need '
'to add an egg at the end. For '
'instance git+https://.../#egg=Foo')

but perhaps it should be left to Pip.

@cs01
Copy link
Contributor

cs01 commented Oct 18, 2018

I recently started a project called pipx that combines pipsi's functionality with npx's. You can install packages from git projects without the egg suffix.

>> pipx install --spec git+https://github.com/ambv/black.git black
black from package black is now available globally
blackd from package black is now available globally
done! ✨ 🌟 ✨

Would love to hear what you think! https://github.com/cs01/pipx

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

No branches or pull requests

3 participants