File: setup.py

package info (click to toggle)
python-cwcwidth 0.1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 440 kB
  • sloc: ansic: 170; python: 78; sh: 6; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/python3

import platform
from setuptools import setup, Extension


extension_sources = ["cwcwidth/_impl.pyx"]
define_macros = []
if platform.system() == "Windows":
    extension_sources.append("cwcwidth/wcwidth.c")
    define_macros.append(
        ("USE_MK_WCWIDTH", None),
    )

ext_modules = [
    Extension(
        "cwcwidth._impl",
        extension_sources,
        define_macros=define_macros,
    )
]

setup(
    ext_modules=ext_modules,
    packages=["cwcwidth"],
    package_data={
        "cwcwidth": ["_impl.pyi", "py.typed"],
    },
)