Skip to content

Commit 9fe58e7

Browse files
committed
Trigger doxygen generation in cibuildwheel
1 parent 8a1c412 commit 9fe58e7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/scripts/python_wheels/cibw_before_all.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export PYTHON="python${PYTHON_VERSION}"
1414

1515
if [ "$(uname)" == "Linux" ]; then
1616
# manylinux2014 is based on CentOS 7, so use yum to install dependencies
17-
yum install -y wget
17+
yum install -y wget doxygen
1818

1919
# Install Boost from source
2020
wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz --quiet
@@ -24,7 +24,7 @@ if [ "$(uname)" == "Linux" ]; then
2424
./b2 install --prefix=/opt/boost --with=all
2525
cd ..
2626
elif [ "$(uname)" == "Darwin" ]; then
27-
brew install wget cmake boost
27+
brew install wget cmake boost doxygen
2828
fi
2929

3030
$(which $PYTHON) -m pip install -r $PROJECT_DIR/python/dev_requirements.txt
@@ -48,11 +48,14 @@ cmake $PROJECT_DIR \
4848
-DGTSAM_PYTHON_VERSION=$PYTHON_VERSION \
4949
-DPYTHON_EXECUTABLE:FILEPATH=$(which $PYTHON) \
5050
-DGTSAM_ALLOW_DEPRECATED_SINCE_V43=OFF \
51-
-DCMAKE_INSTALL_PREFIX=$PROJECT_DIR/gtsam_install
51+
-DCMAKE_INSTALL_PREFIX=$PROJECT_DIR/gtsam_install \
52+
-DGTSAM_GENERATE_DOC_XML=1
5253

53-
cd $PROJECT_DIR/build/python
54+
# Generate Doxygen XML documentation
55+
doxygen build/doc/Doxyfile
5456

5557
# Install the Python wrapper module and generate Python stubs
58+
cd $PROJECT_DIR/build/python
5659
if [ "$(uname)" == "Linux" ]; then
5760
make -j $(nproc) install
5861
make -j $(nproc) python-stubs

0 commit comments

Comments
 (0)