#*****************************************************************************1# Copyright (C) 2023 Vincent Delecroix <[email protected]>2#3# This program is free software: you can redistribute it and/or modify4# it under the terms of the GNU General Public License as published by5# the Free Software Foundation, either version 2 of the License, or6# (at your option) any later version.7# http://www.gnu.org/licenses/8#*****************************************************************************910import os111213AUTOGEN_DIR = os.path.dirname(os.path.realpath(__file__))14FLINT_GIT_DIR = os.environ.get('FLINT_GIT_DIR', '')15FLINT_INCLUDE_DIR = os.path.join(FLINT_GIT_DIR, 'src')16FLINT_DOC_DIR = os.path.join(FLINT_GIT_DIR, 'doc/source')1718if not os.path.isdir(FLINT_GIT_DIR) or not os.path.isdir(FLINT_INCLUDE_DIR) or not os.path.isdir(FLINT_DOC_DIR):19raise ValueError('FLINT_GIT_DIR (={}) environment variable must be set to the location of flint sources'.format(FLINT_GIT_DIR))202122