加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
徐轶轩 提交于 2021-01-31 20:15 . Formal Commit
import os
import sys
import numpy
import setuptools
from setuptools import find_packages
from numpy.distutils.core import setup
# Project Information
DISTNAME = "deep-forest"
DESCRIPTION = "Deep Forest"
with open("README.rst") as f:
LONG_DESCRIPTION = f.read()
MAINTAINER = "Yi-Xuan Xu"
MAINTAINER_EMAIL = "xuyx@lamda.nju.edu.cn"
URL = "https://github.com/LAMDA-NJU/Deep-Forest"
VERSION = "0.1.0"
def configuration(parent_package="", top_path=None):
if os.path.exists("MANIFEST"):
os.remove("MANIFEST")
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path)
config.add_subpackage("deepforest")
return config
if __name__ == "__main__":
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0, local_path)
setup(configuration=configuration,
name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
packages=find_packages(),
include_package_data=True,
description=DESCRIPTION,
url=URL,
version=VERSION,
long_description=LONG_DESCRIPTION,
zip_safe=False,
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
python_requires=">=3.6",
install_requires=[
"numpy>=1.13.3,<1.20.0",
"scipy>=0.19.1",
"joblib>=0.11",
"scikit-learn>=0.22",
],
setup_requires=["cython"])
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化