|
8 | 8 | ext = ".pyx" if USE_CYTHON else ".c"
|
9 | 9 |
|
10 | 10 | extensions = [
|
11 |
| - setuptools.Extension("draw_polygon", ["upolygon/draw_polygon" + ext], extra_compile_args=["-O3", "-Wall"]), |
12 |
| - setuptools.Extension("find_contours", ["upolygon/find_contours" + ext], extra_compile_args=["-O3", "-Wall"]), |
13 |
| - setuptools.Extension("simplify_polygon", ["upolygon/simplify_polygon" + ext], extra_compile_args=["-O3", "-Wall"]), |
14 |
| - setuptools.Extension("rle", ["upolygon/rle" + ext], extra_compile_args=["-O3", "-Wall"]), |
| 11 | + setuptools.Extension( |
| 12 | + "draw_polygon", |
| 13 | + ["upolygon/draw_polygon" + ext], |
| 14 | + extra_compile_args=["-O3", "-Wall"], |
| 15 | + ), |
| 16 | + setuptools.Extension( |
| 17 | + "find_contours", |
| 18 | + ["upolygon/find_contours" + ext], |
| 19 | + extra_compile_args=["-O3", "-Wall"], |
| 20 | + ), |
| 21 | + setuptools.Extension( |
| 22 | + "simplify_polygon", |
| 23 | + ["upolygon/simplify_polygon" + ext], |
| 24 | + extra_compile_args=["-O3", "-Wall"], |
| 25 | + ), |
| 26 | + setuptools.Extension( |
| 27 | + "run_length_encoding", |
| 28 | + ["upolygon/run_length_encoding" + ext], |
| 29 | + extra_compile_args=["-O3", "-Wall"], |
| 30 | + ), |
15 | 31 | ]
|
16 | 32 |
|
17 | 33 | if USE_CYTHON:
|
|
21 | 37 |
|
22 | 38 | setuptools.setup(
|
23 | 39 | name="upolygon",
|
24 |
| - version="0.1.6", |
| 40 | + version="0.1.7", |
25 | 41 | author="V7",
|
26 | 42 | author_email="simon@v7labs.com",
|
27 | 43 | description="Collection of fast polygon operations for DL",
|
|
31 | 47 | ext_modules=extensions,
|
32 | 48 | install_requires=["numpy"],
|
33 | 49 | packages=setuptools.find_packages(),
|
34 |
| - classifiers=["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",], |
| 50 | + classifiers=[ |
| 51 | + "Programming Language :: Python :: 3", |
| 52 | + "License :: OSI Approved :: MIT License", |
| 53 | + ], |
35 | 54 | python_requires=">=3.6",
|
36 | 55 | )
|
0 commit comments