2024-05-10 01:57:53 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
2019-12-17 00:57:45 +00:00
|
|
|
from setuptools import setup, Extension
|
2019-10-31 22:42:49 +00:00
|
|
|
from os.path import join
|
2025-09-18 23:30:05 +01:00
|
|
|
import sysconfig
|
|
|
|
|
|
|
|
macros = []
|
|
|
|
free_threaded = sysconfig.get_config_var("Py_GIL_DISABLED")
|
|
|
|
|
|
|
|
if free_threaded:
|
|
|
|
macros.append(("Py_GIL_DISABLED", "1"))
|
2019-12-17 00:57:45 +00:00
|
|
|
|
2017-04-06 19:54:09 +01:00
|
|
|
setup(
|
2022-01-18 15:14:33 +00:00
|
|
|
ext_modules=[Extension('regex._regex', [join('regex_3', '_regex.c'),
|
|
|
|
join('regex_3', '_regex_unicode.c')])],
|
2025-09-18 23:30:05 +01:00
|
|
|
define_macros=macros,
|
2019-10-31 22:42:49 +00:00
|
|
|
)
|