Skip to content

Commit

Permalink
sage-generate-meson: Use install_subdir only when --monolithic
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jan 6, 2024
1 parent f55fb12 commit fd8a465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage_setup/autogen/meson/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def read_distribution(path):
has_cython = has_cython or subdir_has_cython
if not subdir_distributions:
pass
elif len(subdir_distributions) > 1 or subdir_has_cython:
elif not monolithic or len(subdir_distributions) > 1 or subdir_has_cython:
recurse_subdirs[subdir] = subdir_distributions
else:
by_distribution[list(subdir_distributions)[0]].install_subdirs.append(subdir)
Expand Down Expand Up @@ -210,7 +210,7 @@ def get_metadata(path: Path):
if cython_files:
has_cython = True

if not has_cython and len(distributions) <= 1:
if monolithic and not has_cython and len(distributions) <= 1:
# No need for a meson.build file
try:
meson_build_path.unlink()
Expand Down

0 comments on commit fd8a465

Please sign in to comment.