xref: /libCEED/python/tests/setup-qfunctions.py (revision 9ba83ac0e4b1fca39d6fa6737a318a9f0cbc172d)
1# Copyright (c) 2017-2026, 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=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# ------------------------------------------------------------------------------
28