1

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
  • 57,284
  • 10
  • 68
  • 103
Alex R
  • 10,320
  • 12
  • 76
  • 145

2 Answers2

6

Pip conveniently has built-in Git support.

pip install git+https://github.com/user_name/repo_name
Draconis
  • 2,771
  • 14
  • 24
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
  • 76,709
  • 19
  • 122
  • 186