Skip to content

Commit

Permalink
Add .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaazzini committed Dec 21, 2021
1 parent b03a008 commit 405a22d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/__pycache__/
.pytest_cache/
build/

*.so
27 changes: 22 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,24 @@
ext = ".pyx" if USE_CYTHON else ".c"

extensions = [
setuptools.Extension("draw_polygon", ["upolygon/draw_polygon" + ext], extra_compile_args=["-O3", "-Wall"]),
setuptools.Extension("find_contours", ["upolygon/find_contours" + ext], extra_compile_args=["-O3", "-Wall"]),
setuptools.Extension("simplify_polygon", ["upolygon/simplify_polygon" + ext], extra_compile_args=["-O3", "-Wall"]),
setuptools.Extension("rle", ["upolygon/rle" + ext], extra_compile_args=["-O3", "-Wall"]),
setuptools.Extension(
"draw_polygon",
["upolygon/draw_polygon" + ext],
extra_compile_args=["-O3", "-Wall"],
),
setuptools.Extension(
"find_contours",
["upolygon/find_contours" + ext],
extra_compile_args=["-O3", "-Wall"],
),
setuptools.Extension(
"simplify_polygon",
["upolygon/simplify_polygon" + ext],
extra_compile_args=["-O3", "-Wall"],
),
setuptools.Extension(
"rle", ["upolygon/rle" + ext], extra_compile_args=["-O3", "-Wall"]
),
]

if USE_CYTHON:
Expand All @@ -31,6 +45,9 @@
ext_modules=extensions,
install_requires=["numpy"],
packages=setuptools.find_packages(),
classifiers=["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
],
python_requires=">=3.6",
)

0 comments on commit 405a22d

Please sign in to comment.