Skip to content

Commit cbe0b06

Browse files
committed
fix sdist option
1 parent cafa9be commit cbe0b06

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

python/meson.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ option(
9696
'sdist',
9797
type: 'boolean',
9898
description: 'Build a Python source distribution',
99+
value: false,
99100
)
100101

101102
option(

python/pyarrow/meson.build

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -472,15 +472,17 @@ py.install_sources(
472472
subdir: 'pyarrow/include/arrow/python',
473473
)
474474

475-
arrow_header_dir = arrow_dep.get_variable(
476-
pkgconfig: 'includedir',
477-
cmake: 'PACKAGE_INCLUDE_DIRS',
478-
) / 'arrow'
479-
480-
install_subdir(
481-
arrow_header_dir,
482-
install_dir: py.get_install_dir() / 'pyarrow' / 'include',
483-
)
475+
if not get_option('sdist')
476+
arrow_header_dir = arrow_dep.get_variable(
477+
pkgconfig: 'includedir',
478+
cmake: 'PACKAGE_INCLUDE_DIRS',
479+
) / 'arrow'
480+
481+
install_subdir(
482+
arrow_header_dir,
483+
install_dir: py.get_install_dir() / 'pyarrow' / 'include',
484+
)
485+
endif
484486

485487
py.install_sources(
486488
files('src/arrow/python/vendored/pythoncapi_compat.h'),

0 commit comments

Comments
 (0)