setup-qfunctions.py (20a16a5fde8c37c2820b3798c7dd8f97d46128bb) setup-qfunctions.py (d4f9124cb1a45ca88b676a102fa1807cec70f276)
1# Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC and other CEED contributors.
2# All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3#
4# SPDX-License-Identifier: BSD-2-Clause
5#
6# This file is part of CEED: http://github.com/ceed
7
8import os
9from setuptools import setup, Extension
10import libceed
11CEED_DIR = os.path.dirname(libceed.__file__)
12
13# ------------------------------------------------------------------------------
14# Setup
15# ------------------------------------------------------------------------------
16qf_module = Extension("libceed_qfunctions",
17 include_dirs=[os.path.join(CEED_DIR, 'include')],
18 sources=["libceed-qfunctions.c"],
1# Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC and other CEED contributors.
2# All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3#
4# SPDX-License-Identifier: BSD-2-Clause
5#
6# This file is part of CEED: http://github.com/ceed
7
8import os
9from setuptools import setup, Extension
10import libceed
11CEED_DIR = os.path.dirname(libceed.__file__)
12
13# ------------------------------------------------------------------------------
14# Setup
15# ------------------------------------------------------------------------------
16qf_module = Extension("libceed_qfunctions",
17 include_dirs=[os.path.join(CEED_DIR, 'include')],
18 sources=["libceed-qfunctions.c"],
19 extra_compile_args=["-O3", "-std=c99",
19 extra_compile_args=["-O3", "-std=c11",
20 "-Wno-unused-variable",
21 "-Wno-unused-function"])
22
23setup(name="libceed_qfunctions",
24 description="libceed qfunction pointers",
25 ext_modules=[qf_module])
26
27# ------------------------------------------------------------------------------
20 "-Wno-unused-variable",
21 "-Wno-unused-function"])
22
23setup(name="libceed_qfunctions",
24 description="libceed qfunction pointers",
25 ext_modules=[qf_module])
26
27# ------------------------------------------------------------------------------