You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our SVN server uses the SVNIndexXSLT directive to customize the look when viewed in a web browser. We use the svnindex.xsl file from here.
We have set up a repository which contains all of our wheel files and would like to have pip install grab the wheel files directly from the SVN repo URL.
The pip install command fails apparently because the content-type returned by the repository is text/xml and the _get_page() function in index.py explicitly disallows any content-type other than text/html.
Would it be feasible to add support for parsing xml in addition to html?
The pip error message is:
pip install --use-wheel --no-index --find-links=http://code.ourcompany.com/svn/third-party/wheelhouse/trunk --trusted-host=code.ourcompany.com --verbose -r ../requirements/requirements.txt
Ignoring indexes: https://pypi.python.org/simple
Collecting cffi==1.5.0 (from -r ../requirements/requirements.txt (line 1))
1 location(s) to search for versions of cffi:
* http://code.ourcompany.com/svn/third-party/wheelhouse/trunk
Skipping link http://code.ourcompany.com/svn/third-party/wheelhouse/trunk (from -f); not a file
Getting page http://code.ourcompany.com/svn/third-party/wheelhouse/trunk
Starting new HTTP connection (1): code.ourcompany.com
"GET /svn/third-party/wheelhouse/trunk HTTP/1.1" 301 355
Resetting dropped connection: code.ourcompany.com
"GET /svn/third-party/wheelhouse/trunk/ HTTP/1.1" 200 2254
Skipping page http://code.ourcompany.com/svn/third-party/wheelhouse/trunk because of Content-Type: text/xml
Could not find a version that satisfies the requirement cffi==1.5.0 (from -r ../requirements/requirements.txt (line 1)) (from versions: )
Cleaning up...
No matching distribution found for cffi==1.5.0 (from -r ../requirements/requirements.txt (line 1))
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/site-packages/pip/commands/install.py", line 310, in run
wb.build(autobuilding=True)
File "/usr/local/lib/python2.7/site-packages/pip/wheel.py", line 747, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/local/lib/python2.7/site-packages/pip/req/req_set.py", line 359, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/local/lib/python2.7/site-packages/pip/req/req_set.py", line 511, in _prepare_file
finder, self.upgrade, require_hashes)
File "/usr/local/lib/python2.7/site-packages/pip/req/req_install.py", line 271, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/local/lib/python2.7/site-packages/pip/index.py", line 485, in find_requirement
'No matching distribution found for %s' % req
DistributionNotFound: No matching distribution found for cffi==1.5.0 (from -r ../requirements/requirements.txt (line 1))
The page returned by the SVN repo looks like this:
Our SVN server uses the SVNIndexXSLT directive to customize the look when viewed in a web browser. We use the svnindex.xsl file from here.
We have set up a repository which contains all of our wheel files and would like to have pip install grab the wheel files directly from the SVN repo URL.
The pip install command fails apparently because the content-type returned by the repository is text/xml and the _get_page() function in index.py explicitly disallows any content-type other than text/html.
Would it be feasible to add support for parsing xml in addition to html?
The pip error message is:
The page returned by the SVN repo looks like this:
Tested using Python 2.7.8, SVN 1.8.13, pip 7.1.2 and pip 8.0.0, wheel 0.26.0.
The text was updated successfully, but these errors were encountered: