mirror of
https://github.com/eclipse/upm.git
synced 2025-07-06 03:41:13 +03:00
autodoc: Removed autodoc directive from py swig
Since UPM uses doxy2swig, there is no need for the swig interface file autodoc for python. Also, turned on the doxy2swig --quiet switch which cleans up the build log a tiny bit. This removes a redundant chunk of documentation from python modules (per each function). Old: def pH(self, samples=15): +-> """ | pH(DFRPH self, unsigned int samples=15) -> float | | Parameters | ---------- swig| samples: unsigned int | | pH(DFRPH self) -> float | | Parameters | ---------- +-> self: upm::DFRPH * +-> float pH(unsigned int | samples=15) | | Take a number of samples and return the detected pH value. The default | number of samples is 15. | doxy2swig| Parameters: | ----------- | | samples: The number of samples to average over, default 15 | | The pH value detected | """ +-> return _pyupm_dfrph.DFRPH_pH(self, samples) New: def pH(self, samples=15): +-> """ | float pH(unsigned int | samples=15) | | Take a number of samples and return the detected pH value. The default | number of samples is 15. | doxy2swig| Parameters: | ----------- | | samples: The number of samples to average over, default 15 | | The pH value detected +-> """ Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@ -778,7 +778,7 @@ if (BUILDDOC AND BUILDSWIGPYTHON)
|
||||
# doxy2swig the doxygen output
|
||||
add_custom_target (pyupm_doxy2swig ALL
|
||||
COMMAND ${PYTHON2_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/doxy2swig.py
|
||||
${CMAKE_BINARY_DIR}/xml/index.xml
|
||||
${CMAKE_BINARY_DIR}/xml/index.xml --quiet
|
||||
${CMAKE_CURRENT_BINARY_DIR}/pyupm_doxy2swig.i
|
||||
DEPENDS doc)
|
||||
# BUILDDOC not set but still building python modules, generate an empty
|
||||
|
Reference in New Issue
Block a user