Debian Codegraph @

setup.py

raw symbols SCIP
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 from setuptools import setup, Extension
4 from os.path import join
5 import sysconfig
6
7 macros = []
8 free_threaded = sysconfig.get_config_var("Py_GIL_DISABLED")
9
10 if free_threaded:
11 macros.append(("Py_GIL_DISABLED", "1"))
12
13 setup(
14 ext_modules=[Extension('regex._regex', [join('regex_3', '_regex.c'),
15 join('regex_3', '_regex_unicode.c')])],
16 define_macros=macros,
17 )