mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +03:00
cmake: make sphinx use a python-staging folder instead of site-packages
This means that you no longer need to install UPM in oder to be able to use `make pydoc`. The target pydoc now depends on target doc which with SWIG will cause python modules to be built, making parralel builds work as expected. We wipe the python-staging directory on each make pydoc as it's a custom_target and will rerun at every time anyways, copy is cheap and in case a module gets deleted it avoids the doc still getting built Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
54c2c8db76
commit
f537a5cd4c
@ -20,8 +20,7 @@ import shlex
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
sys.path.insert(0, "@CMAKE_INSTALL_LIBDIR@/python@PYTHON_VERSION_MAJOR@.@PYTHON_VERSION_MINOR@/site-packages/")
|
||||
sys.path.insert(0, "@CMAKE_INSTALL_LIBDIR@")
|
||||
sys.path.insert(0, "@CMAKE_CURRENT_BINARY_DIR@/python-staging/")
|
||||
sys.path.insert(0, "@MRAA_LIBDIR@@LIB_SUFFIX@")
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
Reference in New Issue
Block a user