未验证 提交 099d172c 编写于 作者: J Jiawei Wang 提交者: GitHub

Merge pull request #1254 from zhangjun/wheel-name

add abi and platform tag for wheel
......@@ -25,6 +25,10 @@ from setuptools import setup
from paddle_serving_app.version import version_tag
from pkg_resources import DistributionNotFound, get_distribution
class BinaryDistribution(Distribution):
def has_ext_modules(foo):
return True
def python_version():
return [int(v) for v in platform.python_version().split(".")]
......@@ -88,6 +92,7 @@ setup(
packages=packages,
package_data=package_data,
package_dir=package_dir,
distclass=BinaryDistribution,
# PyPI package information.
classifiers=[
'Development Status :: 4 - Beta',
......
......@@ -26,6 +26,10 @@ from paddle_serving_client.version import version_tag
import util
py_version = sys.version_info
class BinaryDistribution(Distribution):
def has_ext_modules(foo):
return True
def copy_lib():
os.popen('mkdir -p paddle_serving_client/lib')
......@@ -89,6 +93,7 @@ setup(
packages=packages,
package_data=package_data,
package_dir=package_dir,
distclass=BinaryDistribution,
# PyPI package information.
classifiers=[
'Development Status :: 4 - Beta',
......
......@@ -22,6 +22,10 @@ from setuptools import setup
from paddle_serving_server.version import version_tag, version_suffix
import util
class BinaryDistribution(Distribution):
def has_ext_modules(foo):
return True
package_version = version_tag.replace('-', '')
if version_suffix != "":
version_suffix = "post" + version_suffix
......@@ -71,6 +75,7 @@ setup(
packages=packages,
package_data=package_data,
package_dir=package_dir,
distclass=BinaryDistribution,
# PyPI package information.
classifiers=[
'Development Status :: 4 - Beta',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册