Question

I have a number of python "script suites" (as I call them) which I would like to make easy-to-install for my colleagues. I have looked into pip, and that seems really nice, but in that regimen (as I understand it) I would have to submit a static version and update them on every change.

As it happens I am going to be adding and changing a lot of stuff in my script suites along the way, and whenever someone installs it, I would like them to get the newest version. With pip, that means that on every commit to my repository, I will also have to re-submit a package to the PyPI index. That's a lot of unnecessary work.

Is there any way to provide an easy cross-platform installation (via pip or otherwise) which pulls the files directly from my github repo?

Was it helpful?

Solution

I'm not sure if I understand your problem entirely, but you might want to use pip's editable installs[1]

Here's a brief example: In this artificial example let's suppose you want to use git as CVS.

git clone url_to_myrepo.git path/to/local_repository
pip install [--user] -e path/to/local_repository

The installation of the package will reflect the state of your local repository. Therefore there is no need to reinstall the package with pip when the remote repository gets updated. Whenever you pull changes to your local repository, the installation will be up-to-date as well.

[1] http://pip.readthedocs.org/en/latest/reference/pip_install.html#editable-installs

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top