1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
###############################################################################
# Top contributors (to current version):
# Gereon Kremer
#
# This file is part of the cvc5 project.
#
# Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
# in the top-level source directory and their institutional affiliations.
# All rights reserved. See the file COPYING in the top-level source
# directory for licensing information.
# ############################################################################
#
# Run configure.sh and make cmake pick up whatever python interpreter this
# script is run with. Additionally, all arguments passed to this script are
# forwarded as well.
##
import subprocess
import sys
from skbuild.cmaker import CMaker
python_version = CMaker.get_python_version()
args = [
'-DPYTHON_VERSION_STRING:STRING=' + sys.version.split(' ')[0],
'-DPYTHON_INCLUDE_DIR:PATH=' +
CMaker.get_python_include_dir(python_version),
'-DPYTHON_LIBRARY:FILEPATH=' +
CMaker.get_python_library(python_version),
]
subprocess.check_call(['./configure.sh', *sys.argv[1:], *args])
|