1*9ba83ac0SJeremy L Thompson# Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors. 25aed82e4SJeremy L Thompson# All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 30ef72598Sjeremylt# 45aed82e4SJeremy L Thompson# SPDX-License-Identifier: BSD-2-Clause 50ef72598Sjeremylt# 65aed82e4SJeremy 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"], 19d4f9124cSJed Brown extra_compile_args=["-O3", "-std=c11", 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