mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
support build cpu/gpu package (#75)
* support build cpu/gpu package * remove useless modification
This commit is contained in:
36
sdk_mannager/setup.py
Normal file
36
sdk_mannager/setup.py
Normal file
@@ -0,0 +1,36 @@
|
||||
import setuptools
|
||||
import fastdeploy
|
||||
import io
|
||||
import os
|
||||
|
||||
with open("requirements.txt") as fin:
|
||||
REQUIRED_PACKAGES = fin.read()
|
||||
|
||||
|
||||
def read(*names, **kwargs):
|
||||
with io.open(
|
||||
os.path.join(os.path.dirname(__file__), *names),
|
||||
encoding=kwargs.get("encoding", "utf8")) as fp:
|
||||
return fp.read()
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
name="fastdeploy-python",
|
||||
version=fastdeploy.__version__,
|
||||
author="FastDeploy",
|
||||
author_email="fastdeploy@baidu.com",
|
||||
description="FastDeploy is a toolkit to deploy deeplearning models.",
|
||||
long_description=read("../README.md"),
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/PaddlePaddle/FastDeploy",
|
||||
packages=setuptools.find_packages(),
|
||||
install_requires=REQUIRED_PACKAGES,
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3",
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
"Operating System :: OS Independent",
|
||||
],
|
||||
license='Apache 2.0',
|
||||
entry_points={
|
||||
'console_scripts': ['fastdeploy=fastdeploy.__init__:main', ]
|
||||
})
|
Reference in New Issue
Block a user