Search code examples
pythonfacebookgithubbuildoutpypi

Pyfacebook from buildout


What is the best way to install the latest version of pyfacebook with buildout? The package is hosted on github and is not on pypi. This system doesn't have git installed, so a git-based recipe isn't unfortunately not an option. The github URL is http://github.com/sciyoshi/pyfacebook. TIA!


Solution

  • You can add any python package hosted on git-hub by adding a find-links url pointing to the project tarball URL plus a #egg=packagename postfix. For pyfacebook that is:

    http://github.com/sciyoshi/pyfacebook/tarball/master#egg=pyfacebook
    

    So a simple buildout would be:

    [buildout]
    parts = whatever
    find-links =
        http://github.com/sciyoshi/pyfacebook/tarball/master#egg=pyfacebook
    eggs = pyfacebook