Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git clone + install in Python

Tags:

git

python

pip

Is there a one-liner shortcut for:

git clone https://github.com/user/mypythonmodule.git
cd mypythonmodule
python setup.py install
cd ..

like

git clone install https://github.com/user/mypythonmodule.git

or doesn't this exist?

like image 372
Basj Avatar asked Oct 15 '25 15:10

Basj


1 Answers

If you use pip it supports installing from git URLs.

From the pip documentation

"pip currently supports cloning over git, git+https and git+ssh"

So you would do

pip install git+https://github.com/user/mypythonmodule.git
like image 191
Stephen Paulger Avatar answered Oct 18 '25 06:10

Stephen Paulger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!