|
- 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="linhandev@qq.com",
- 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",
- ]
- },
- )
|