2

I've started using the Python Chalice framework and I found out I need a bugfix that was merged less than 24 hours ago into the framework's master branch, through this PR:

https://github.com/aws/chalice/pull/1116

My experience with Python modules is limited to typing pip install and watching the magic happen. How can I install Chalice straight off GitHub's master branch instead?

phd
  • 82,685
  • 13
  • 120
  • 165
Alex R
  • 11,364
  • 15
  • 100
  • 180

2 Answers2

11

Pip conveniently has built-in Git support.

pip install git+https://github.com/user_name/repo_name
Draconis
  • 3,209
  • 1
  • 19
  • 31
2

@Draconis's answer is the simplest in terms of manual steps. If you already have the repo, you can use its setup.py:

./setup.py install

Or if you want to specifically use pip:

pip install -e .

Both commands are shown being run from the project root that contains setup.py.

If you got the repo to do development in it, you may want to do

./setup.py develop

This will symlink your working directory into your Python installation's site packages, so all your changes show up instantly as you work.

Mad Physicist
  • 107,652
  • 25
  • 181
  • 264