mirror of
https://github.com/biojppm/rapidyaml.git
synced 2026-01-18 21:41:18 +01:00
Don't require cmake_component.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
@@ -4,13 +4,21 @@ from setuptools import setup
|
||||
from cmake_build_extension import BuildExtension, CMakeExtension
|
||||
|
||||
# define a CMake package
|
||||
ext = CMakeExtension('ryml.ryml',
|
||||
install_prefix='',
|
||||
source_dir=str(Path("../../").absolute()),
|
||||
cmake_component='python',
|
||||
cmake_configure_options=[
|
||||
"-DRYML_BUILD_API:BOOL=ON",
|
||||
])
|
||||
cmake_args = dict(
|
||||
name='ryml.ryml',
|
||||
install_prefix='',
|
||||
source_dir=str(Path("../../").absolute()),
|
||||
cmake_component='python',
|
||||
cmake_configure_options=[
|
||||
"-DRYML_BUILD_API:BOOL=ON",
|
||||
])
|
||||
|
||||
try:
|
||||
ext = CMakeExtension(**cmake_args)
|
||||
except TypeError:
|
||||
# FIXME: cmake_build_extension may not support cmake_component.
|
||||
del cmake_args['cmake_component']
|
||||
ext = CMakeExtension(**cmake_args)
|
||||
|
||||
setup(name='rapidyaml',
|
||||
version='1.0',
|
||||
|
||||
Reference in New Issue
Block a user