File: setup.py

package info (click to toggle)
python-regex 0.1.20250918-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,660 kB
  • sloc: ansic: 50,018; python: 8,762; makefile: 15; sh: 7
file content (17 lines) | stat: -rw-r--r-- 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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,
)