提交 5fe25112 编写于 作者: T tangwei

code reformat

上级 168e159a
...@@ -2,19 +2,18 @@ ...@@ -2,19 +2,18 @@
setup for fleet-rec. setup for fleet-rec.
""" """
from setuptools import setup from setuptools import setup, find_packages
models_ctr = ["fleetrec.models.ctr", "fleetrec.models.ctr.dnn", "fleetrec.models.ctr.deepfm"] models = find_packages("models")
models_ot = ["fleetrec.models.other", "fleetrec.models.tdm", "fleetrec.models.multi_task"] tools = find_packages("tools")
models_recall = ["fleetrec.models.recall", "fleetrec.models.recall.word2vec"] dataset = find_packages("dataset")
models = ["fleetrec.models"] + models_ctr + models_ot + models_recall core = find_packages("fleetrec")
core = ["fleetrec.core", "fleetrec.core.engine", package_dir = {}
"fleetrec.core.metrics", "fleetrec.core.modules", package_dir["fleetrec.models"] = models
"fleetrec.core.trainers", "fleetrec.core.utils"] package_dir["fleetrec.tools"] = tools
package_dir["fleetrec.dataset"] = dataset
packages = ["fleetrec", "fleetrec.contrib", "fleetrec.dataset", "fleetrec.doc", "fleetrec.examples", package_dir["fleetrec"] = core
"fleetrec.tools"] + models + core
requires = [ requires = [
"paddlepaddle >= 0.0.0", "paddlepaddle >= 0.0.0",
...@@ -39,7 +38,7 @@ setup( ...@@ -39,7 +38,7 @@ setup(
author=about["__author__"], author=about["__author__"],
author_email=about["__author_email__"], author_email=about["__author_email__"],
url=about["__url__"], url=about["__url__"],
packages=packages, package_dir=package_dir,
python_requires=">=2.7", python_requires=">=2.7",
install_requires=requires, install_requires=requires,
zip_safe=False zip_safe=False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册