Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PIP install a Python Package without a setup.py file?

I'm trying to figure out how I can install a python package that doesn't have a setup.py file with pip. (package in question is http://code.google.com/p/django-google-analytics/)

Normally I would just checkout the code from the repo and symlink into my site-packages, but I'm trying to get my whole environment frozen into a pip requirements file for easy deployment and testing.

Any ideas?

like image 367
erikcw Avatar asked Feb 05 '10 03:02

erikcw


1 Answers

Fork the repo and add a working setup.py. Then send a pull request to the author.

Oh, it's on Google Code. Well then, file a bug and post a patch.

If the author refuses to make their code into an installable Python distribution (never happened to me), just host your fork somewhere and put that in your requirements file.

like image 117
Carl Meyer Avatar answered Oct 10 '22 20:10

Carl Meyer