<div dir="ltr"><div><br></div><div>Hi,</div><div><br></div><div>I have recently been using sphinx and just tried auto-configuring the version in the <i>conf.py</i> by including the following lines at the top:</div><div><br>
</div><div><pre style="font-family:courier,monospace;font-size:13px;white-space:pre-wrap;padding:5pt;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;background-color:rgb(243,245,247);border:1pt solid rgb(174,189,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
import os
<span class="" id="line-2-5" style></span> import catkin_pkg.package
<span class="" id="line-3-3" style></span> catkin_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 
<span class="" id="line-4-3" style></span> catkin_package = catkin_pkg.package.parse_package(os.path.join(catkin_dir, catkin_pkg.package.PACKAGE_MANIFEST_FILENAME))</pre></div><div>and further down:</div><div><br></div><div>
<pre style="font-family:courier,monospace;font-size:13px;white-space:pre-wrap;padding:5pt;margin-top:0px;margin-bottom:10px;line-height:1.428571429;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;background-color:rgb(243,245,247);border:1pt solid rgb(174,189,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px">
 version = catkin_package.version
<span class="" id="line-2-6" style></span> release = catkin_package.version</pre></div><div><br></div><div>This works fine locally with python-catkin-pkg installed. However on the build farm, it's running into a problem not being able to find catkin_pkg for importing:</div>
<div><br></div><div><pre class="" style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:10.909090995788574px">CMake Warning at /opt/ros/indigo/share/catkin_basic/cmake/catkin_basicConfig.cmake:12 (find_package):
  By not providing "Findpython-catkin-pkg.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "python-catkin-pkg", but CMake did not find one.

  Could not find a package configuration file provided by "python-catkin-pkg"
  with any of the following names:

    python-catkin-pkgConfig.cmake
    python-catkin-pkg-config.cmake

  Add the installation prefix of "python-catkin-pkg" to CMAKE_PREFIX_PATH or
  set "python-catkin-pkg_DIR" to a directory containing one of the above
  files.  If "python-catkin-pkg" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin_basic/cmake/catkin_basicConfig.cmake:54 (select_catkin_dependencies)
  rocon_tools/rocon_icons/CMakeLists.txt:3 (catkin_basic)
</pre></div><div><br></div><div><br></div><div>Full log <a href="http://jenkins.ros.org/job/doc-indigo-rocon_tools/11/consoleFull">here</a>.</div><div><br></div><div>Is there currently a correct way to make this happen?  I'm out of ideas.</div>
<div><br></div><div>Cheers,</div><div>Daniel.</div>
</div>