|
8 | 8 |
|
9 | 9 | here = os.path.abspath(os.path.dirname(__file__)) |
10 | 10 |
|
11 | | -define_macros = [('UNICODE', 1), ('_UNICODE', 1)] |
| 11 | +define_macros = [("UNICODE", 1), ("_UNICODE", 1)] |
12 | 12 | linetrace = False |
13 | | -if int(os.environ.get('CYTHON_LINETRACE', '0')): |
| 13 | +if int(os.environ.get("CYTHON_LINETRACE", "0")): |
14 | 14 | linetrace = True |
15 | | - define_macros.append(('CYTHON_TRACE_NOGIL', '1')) |
| 15 | + define_macros.append(("CYTHON_TRACE_NOGIL", "1")) |
16 | 16 |
|
17 | | -extra_compile_args = ['/Zc:wchar_t'] |
| 17 | +extra_compile_args = ["/Zc:wchar_t"] |
18 | 18 |
|
19 | | -if platform.system() != 'Windows': |
20 | | - extra_compile_args.append('-std=c++11') |
| 19 | +if platform.system() != "Windows": |
| 20 | + extra_compile_args.append("-std=c++11") |
21 | 21 |
|
22 | 22 | extension = Extension( |
23 | | - 'dwriteshapepy.dwriteshape', |
| 23 | + "dwriteshapepy.dwriteshape", |
24 | 24 | define_macros=define_macros, |
25 | 25 | include_dirs=["."], |
26 | | - sources=['src/dwriteshapepy/dwriteshape.pyx','src/cpp/hb-common.cc','src/cpp/hb-number.cc','src/cpp/dwriteshapeInternal.cpp','src/cpp/dwriteshapelib.cpp', 'src/cpp/locale.cpp','src/cpp/posttable.cpp','src/cpp/textanalysis.cpp', 'src/cpp/textrun.cpp' ], |
27 | | - language='c++', |
28 | | - libraries=['dwrite'], |
| 26 | + sources=[ |
| 27 | + "src/dwriteshapepy/dwriteshape.pyx", |
| 28 | + "src/cpp/hb-common.cc", |
| 29 | + "src/cpp/hb-number.cc", |
| 30 | + "src/cpp/dwriteshapeInternal.cpp", |
| 31 | + "src/cpp/dwriteshapelib.cpp", |
| 32 | + "src/cpp/locale.cpp", |
| 33 | + "src/cpp/posttable.cpp", |
| 34 | + "src/cpp/textanalysis.cpp", |
| 35 | + "src/cpp/textrun.cpp", |
| 36 | + ], |
| 37 | + language="c++", |
| 38 | + libraries=["dwrite"], |
29 | 39 | extra_compile_args=extra_compile_args, |
30 | 40 | ) |
31 | 41 |
|
32 | 42 | setup( |
33 | | - name="dwriteshapepy", |
34 | | - version= '1.0.8', |
| 43 | + name="dwriteshapepy", |
| 44 | + version="1.0.9", |
35 | 45 | description="Python extension for Windows DirectWrite shaping, modeled after uharfbuzz ", |
36 | 46 | author="Paul Linnerud", |
37 | 47 | author_email="paulli@microsoft.com", |
|
46 | 56 | packages=["dwriteshapepy"], |
47 | 57 | zip_safe=False, |
48 | 58 | python_requires=">=3.7", |
49 | | - ext_modules = cythonize( |
| 59 | + ext_modules=cythonize( |
50 | 60 | extension, |
51 | | - annotate=bool(int(os.environ.get('CYTHON_ANNOTATE', '0'))), |
| 61 | + annotate=bool(int(os.environ.get("CYTHON_ANNOTATE", "0"))), |
52 | 62 | compiler_directives={"linetrace": linetrace}, |
53 | 63 | ), |
54 | | - entry_points={ |
55 | | - 'console_scripts': [ "dw-shape = dwriteshapepy.__main__:main" ] |
56 | | - } |
| 64 | + entry_points={"console_scripts": ["dw-shape = dwriteshapepy.__main__:main"]}, |
57 | 65 | ) |
0 commit comments