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

Pip install from CC repo #9

Closed
jabrennem opened this issue Apr 20, 2020 · 4 comments
Closed

Pip install from CC repo #9

jabrennem opened this issue Apr 20, 2020 · 4 comments

Comments

@jabrennem
Copy link

jabrennem commented Apr 20, 2020

Is there a way to use this to pip install a python package in a CodeCommit repository?

pip install git-remote-codecommit
pip install git+codecommit::{region}://repo-name

@dytoto
Copy link
Contributor

dytoto commented Apr 29, 2020

You should be able to clone your CodeCommit repository and then install the pip module.

git clone codecommit://<profile>@<python-package-in-repo>

cd <your-python-package>

python setup.py sdist

pip install --upgrade dist/<your-python-package>-*.tar.gz

@mguillau
Copy link

I just came across the same feature wish, so I looked into it (including finding this issue).

Adding support for git+commit:// as a scheme for pip is an issue of pip, not this package. The list of supported git-based schemes in pip is here: https://github.com/pypa/pip/blob/f84f91af27e194a40a1c59f72de93a904d989d44/src/pip/_internal/vcs/git.py#L51 .

I cloned the https://github.com/pypa/pip repo, added 'git+codecommit' to that tuple, ran pip install -e . in a virtual env and was able to install a CodeCommit repo via pip install git+codecommit://repo-name.

Hope this helps.

@jabrennem
Copy link
Author

Thank you. I will try out the tuple idea. It would be a cool feature request for pip to add that scheme via the command line.

@frank-sorschak
Copy link

frank-sorschak commented Aug 30, 2021

pip install git+https://{url_of_repo} worked for me with my git-codecommit repo

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

4 participants