-
Notifications
You must be signed in to change notification settings - Fork 50
/
setup.py
54 lines (45 loc) · 1.47 KB
/
setup.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import pathlib
from setuptools import setup, find_packages, Extension
import numpy as np
from eiseg import __APPNAME__, __VERSION__
# from Cython.Build import cythonize
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text(encoding="utf-8")
with open("requirements.txt") as fin:
REQUIRED_PACKAGES = fin.read()
ext_modules = [
Extension(
"pycocotools._mask",
sources=[
"./eiseg/util/coco/common/maskApi.c",
"./eiseg/util/coco/pycocotools/_mask.pyx",
],
include_dirs=[np.get_include(), "./eiseg/util/coco/common"],
extra_compile_args=["-Wno-cpp", "-Wno-unused-function", "-std=c99"],
)
]
setup(
name=__APPNAME__,
version=__VERSION__,
description="交互式标注软件",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/PaddleCV-SIG/EISeg",
author="PaddleCV-SIG",
author_email="[email protected]",
license="Apache Software License",
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
],
packages=find_packages(exclude=("test",)),
# packages=["EISeg"],
include_package_data=True,
install_requires=REQUIRED_PACKAGES,
entry_points={
"console_scripts": [
"eiseg=eiseg.run:main",
]
},
)