xref: /libCEED/python/tests/setup-qfunctions.py (revision 5aed82e4fa97acf4ba24a7f10a35f5303a6798e0)
1*5aed82e4SJeremy L Thompson# Copyright (c) 2017-2024, Lawrence Livermore National Security, LLC and other CEED contributors.
2*5aed82e4SJeremy L Thompson# All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
30ef72598Sjeremylt#
4*5aed82e4SJeremy L Thompson# SPDX-License-Identifier: BSD-2-Clause
50ef72598Sjeremylt#
6*5aed82e4SJeremy L Thompson# This file is part of CEED:  http://github.com/ceed
70ef72598Sjeremylt
80ef72598Sjeremyltimport os
91f401ad2SJeremy L Thompsonfrom setuptools import setup, Extension
100ef72598Sjeremyltimport libceed
110ef72598SjeremyltCEED_DIR = os.path.dirname(libceed.__file__)
120ef72598Sjeremylt
130ef72598Sjeremylt# ------------------------------------------------------------------------------
140ef72598Sjeremylt# Setup
150ef72598Sjeremylt# ------------------------------------------------------------------------------
160ef72598Sjeremyltqf_module = Extension("libceed_qfunctions",
170ef72598Sjeremylt                      include_dirs=[os.path.join(CEED_DIR, 'include')],
180ef72598Sjeremylt                      sources=["libceed-qfunctions.c"],
190ef72598Sjeremylt                      extra_compile_args=["-O3", "-std=c99",
200ef72598Sjeremylt                                          "-Wno-unused-variable",
210ef72598Sjeremylt                                          "-Wno-unused-function"])
220ef72598Sjeremylt
230ef72598Sjeremyltsetup(name="libceed_qfunctions",
240ef72598Sjeremylt      description="libceed qfunction pointers",
250ef72598Sjeremylt      ext_modules=[qf_module])
260ef72598Sjeremylt
270ef72598Sjeremylt# ------------------------------------------------------------------------------
28