setup.py 1.7 KB
Newer Older
T
for whl  
tangwei 已提交
1 2 3 4 5 6
"""
setup for fleet-rec.
"""

from setuptools import setup

T
tangwei 已提交
7 8 9 10 11 12
models_ctr = ["fleetrec.models.ctr", "fleetrec.models.ctr.dnn", "fleetrec.models.ctr.deepfm"]
models_ot = ["fleetrec.models.other", "fleetrec.models.tdm", "fleetrec.models.multi_task"]
models_recall = ["fleetrec.models.recall", "fleetrec.models.recall.word2vec"]
models = ["fleetrec.models"] + models_ctr + models_ot + models_recall

core = ["fleetrec.core", "fleetrec.core.engine",
T
tangwei 已提交
13
        "fleetrec.core.metrics", "fleetrec.core.modules",
T
tangwei 已提交
14 15 16 17
        "fleetrec.core.trainers", "fleetrec.core.utils"]

packages = ["fleetrec", "fleetrec.contrib", "fleetrec.dataset", "fleetrec.doc", "fleetrec.examples",
            "fleetrec.tools"] + models + core
T
for whl  
tangwei 已提交
18 19

requires = [
T
tangwei 已提交
20 21
    "paddlepaddle >= 0.0.0",
    "netron >= 0.0.0"
T
for whl  
tangwei 已提交
22 23 24 25 26 27
]

about = {}
about["__title__"] = "fleet-rec"
about["__version__"] = "0.0.2"
about["__description__"] = "fleet-rec"
T
tangwei12 已提交
28 29 30 31
about["__author__"] = "seiriosPlus"
about["__author_email__"] = "tangwei12@baidu.com"
about["__url__"] = "https://github.com/seiriosPlus/FleetRec"

T
for whl  
tangwei 已提交
32 33 34 35 36 37 38 39 40 41 42
readme = "..."

setup(
    name=about["__title__"],
    version=about["__version__"],
    description=about["__description__"],
    long_description=readme,
    author=about["__author__"],
    author_email=about["__author_email__"],
    url=about["__url__"],
    packages=packages,
T
tangwei12 已提交
43
    python_requires=">=2.7",
T
for whl  
tangwei 已提交
44 45 46 47 48 49
    install_requires=requires,
    zip_safe=False
)

print('''
\033[32m
T
tangwei12 已提交
50 51 52 53
  _   _   _   _   _   _   _   _   _  
 / \ / \ / \ / \ / \ / \ / \ / \ / \ 
( F | L | E | E | T | - | R | E | C )
 \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ 
T
for whl  
tangwei 已提交
54 55 56 57 58 59
\033[0m
\033[34m
Installation Complete. Congratulations!
How to use it ? Please visit our webside: https://github.com/seiriosPlus/FleetRec
\033[0m
''')