File: mk_build_dir.py

package info (click to toggle)
cvc5 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 77,564 kB
  • sloc: cpp: 319,531; java: 9,108; python: 8,371; sh: 6,061; lisp: 763; ansic: 209; perl: 207; makefile: 23
file content (32 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download
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])