-
-
Notifications
You must be signed in to change notification settings - Fork 679
Closed
Milestone
Description
Running Sphinx from the command-line is typically done by the sphinx-build script. This requires that all dependencies of Sphinx are actually installed (even if they are not used). This means that typing and sphinxcontrib-websupport should be added as dependencies of Sphinx.
Otherwise, you get errors like
[cvxopt-1.1.8.p2] sphinx-build -b html -d build/doctrees source build/html
[cvxopt-1.1.8.p2] Traceback (most recent call last):
[cvxopt-1.1.8.p2] File "/home/jdemeyer/sage-test/local/bin/sphinx-build", line 6, in <module>
[cvxopt-1.1.8.p2] from pkg_resources import load_entry_point
[cvxopt-1.1.8.p2] File "/home/jdemeyer/sage-test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3144, in <module>
[cvxopt-1.1.8.p2] @_call_aside
[cvxopt-1.1.8.p2] File "/home/jdemeyer/sage-test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3128, in _call_aside
[cvxopt-1.1.8.p2] f(*args, **kwargs)
[cvxopt-1.1.8.p2] File "/home/jdemeyer/sage-test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3157, in _initialize_master_working_set
[cvxopt-1.1.8.p2] working_set = WorkingSet._build_master()
[cvxopt-1.1.8.p2] File "/home/jdemeyer/sage-test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_master
[cvxopt-1.1.8.p2] ws.require(__requires__)
[cvxopt-1.1.8.p2] File "/home/jdemeyer/sage-test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 984, in require
[cvxopt-1.1.8.p2] needed = self.resolve(parse_requirements(requirements))
[cvxopt-1.1.8.p2] File "/home/jdemeyer/sage-test/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 870, in resolve
[cvxopt-1.1.8.p2] raise DistributionNotFound(req, requirers)
[cvxopt-1.1.8.p2] pkg_resources.DistributionNotFound: The 'sphinxcontrib-websupport' distribution was not found and is required by Sphinx
Note that it is Sphinx itself which requires sphinxcontrib-websupport. This is unrelated to cvxopt but I'm just using that as example because of #14645.
CC: @dimpase
Component: packages: standard
Author: Dima Pasechnik, Jeroen Demeyer
Branch: 8ecd93c
Reviewer: Jeroen Demeyer, Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/24972