Skip to content

Commit

Permalink
Prevent package finders from processing the wrapped directory (#136)
Browse files Browse the repository at this point in the history
* Prevent package finders from processing the wrapped directory

* Use pathlib touch in COLCON_IGNORE create
  • Loading branch information
rkent authored Aug 1, 2024
1 parent 9b7b77a commit 9dbce82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rosdoc2/verbs/build/builders/sphinx_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import json
import logging
import os
from pathlib import Path
import shutil
import subprocess

Expand Down Expand Up @@ -419,6 +420,7 @@ def build(self, *, doc_build_folder, output_staging_directory):
wrapped_sphinx_directory = os.path.abspath(
os.path.join(doc_build_folder, 'wrapped_sphinx_directory'))
os.makedirs(wrapped_sphinx_directory, exist_ok=True)
Path(wrapped_sphinx_directory).joinpath('COLCON_IGNORE').touch()

# Generate rst documents for interfaces
interface_counts = generate_interface_docs(
Expand Down

0 comments on commit 9dbce82

Please sign in to comment.