mirror of
https://github.com/mrabarnett/mrab-regex.git
synced 2025-10-05 20:02:39 +02:00
18 lines
422 B
Python
18 lines
422 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from setuptools import setup, Extension
|
|
from os.path import join
|
|
import sysconfig
|
|
|
|
macros = []
|
|
free_threaded = sysconfig.get_config_var("Py_GIL_DISABLED")
|
|
|
|
if free_threaded:
|
|
macros.append(("Py_GIL_DISABLED", "1"))
|
|
|
|
setup(
|
|
ext_modules=[Extension('regex._regex', [join('regex_3', '_regex.c'),
|
|
join('regex_3', '_regex_unicode.c')])],
|
|
define_macros=macros,
|
|
)
|