What will I put in the package requirements file for a package not in pypi

I installed python google visualization api in my virtualenv using

pip install -U -f http://code.google.com/p/google-visualization-python/ gviz-api-py 

What do I need to insert the request.txt requirements file so Heroku can download and install it?

+6
source share
3 answers

Try using the following in requirements.txt :

 -e svn+http://google-visualization-python.googlecode.com/svn/trunk#egg=google-visualization-python 

OR

 -e svn+http://google-visualization-python.googlecode.com/svn/ trunk@26 #egg=gviz_api.py-1.8.2-py2.7-dev_r26 

Learn about installing from VCS using pip.

+1
source

This should do it:

 https://github.com/google/google-visualization-python/zipball/master 

This will install gviz-apy.py

0
source

According to the error message

Getting gviz-api.py from svn + http://google-visualization-python.googlecode.com/svn/ trunk@26 # egg = gviz_api.py-1.8.2-py2.7-dev_r26 (from -r requirements .txt (line 6)) Check http://google-visualization-python.googlecode.com/svn/trunk (up to version 26) on. /.heroku/src/gviz-api.py Cannot find the command 'svn'

even svn is not allowed.

In this case, get the source code from googlecode in the project directory and add .svn dirs to .gitignore . Or create a fork on github and work with it.

But before cloning to github, read http://www.apache.org/licenses/LICENSE-2.0 I don't know if such steps are allowed.

-1
source

All Articles