File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed
Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ option(
9696 'sdist',
9797 type: 'boolean',
9898 description: 'Build a Python source distribution',
99+ value: false,
99100)
100101
101102option(
Original file line number Diff line number Diff 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
485487py.install_sources(
486488 files (' src/arrow/python/vendored/pythoncapi_compat.h' ),
You can’t perform that action at this time.
0 commit comments