File: fix_sphinx_detection.patch

package info (click to toggle)
ceres-solver 2.1.0%2Breally2.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,656 kB
  • sloc: cpp: 80,895; ansic: 2,869; python: 679; sh: 78; makefile: 74; xml: 21
file content (15 lines) | stat: -rw-r--r-- 568 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Do not use pip to check sphinx rtd theme availability
Author: Francois Mazen <francois@mzf.fr>
Forwarded: https://github.com/ceres-solver/ceres-solver/issues/809

--- a/cmake/FindSphinx.cmake
+++ b/cmake/FindSphinx.cmake
@@ -50,7 +50,7 @@
   if(PYTHONINTERP_FOUND)
     # Check for sphinx theme dependency for documentation
     execute_process(
-      COMMAND ${PYTHON_EXECUTABLE} -m pip show sphinx-rtd-theme
+      COMMAND ${PYTHON_EXECUTABLE} -c "import sphinx_rtd_theme"
       RESULT_VARIABLE SPHINX_RTD_THEME
       OUTPUT_QUIET
       ERROR_QUIET