From 6a72956bb6f57a94af82f9872f857d879736f604 Mon Sep 17 00:00:00 2001 From: zhoumingcheng <610208940@qq.com> Date: Tue, 7 Apr 2026 10:52:56 +0800 Subject: [PATCH 1/3] [Feature]whl version --- setup.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 55e78125f5a..d127ce02eb0 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ from setuptools.command.build_ext import build_ext from setuptools.command.install import install from wheel.bdist_wheel import bdist_wheel - +from packaging import tags long_description = "FastDeploy: Large Language Model Serving.\n\n" long_description += "GitHub: https://github.com/PaddlePaddle/FastDeploy\n" long_description += "Email: dltp@baidu.com" @@ -47,11 +47,12 @@ class CustomBdistWheel(bdist_wheel): def finalize_options(self): """Configure wheel as pure Python and platform-independent.""" super().finalize_options() + tag = next(tags.sys_tags()) self.root_is_pure = True - self.python_tag = "py3" - self.abi_tag = "none" + self.python_tag = tag.interpreter + self.abi_tag = tag.abi self.plat_name_supplied = True - self.plat_name = "any" + self.plat_name = tag.platform class CMakeExtension(Extension): From ed1344955ae747976f53714cf05d4b58957948ae Mon Sep 17 00:00:00 2001 From: zhoumingcheng <610208940@qq.com> Date: Tue, 7 Apr 2026 16:11:24 +0800 Subject: [PATCH 2/3] [Feature]whl version,set root_is_pure = false --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d127ce02eb0..7c8c20082c2 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,7 @@ def finalize_options(self): """Configure wheel as pure Python and platform-independent.""" super().finalize_options() tag = next(tags.sys_tags()) - self.root_is_pure = True + self.root_is_pure = False self.python_tag = tag.interpreter self.abi_tag = tag.abi self.plat_name_supplied = True From 27d56bfdd467cbd4367de19b4a05d62ae92f64c9 Mon Sep 17 00:00:00 2001 From: zhoumingcheng <610208940@qq.com> Date: Tue, 7 Apr 2026 16:31:17 +0800 Subject: [PATCH 3/3] [Feature]code style --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 7c8c20082c2..205d918c013 100644 --- a/setup.py +++ b/setup.py @@ -23,11 +23,12 @@ from pathlib import Path import paddle +from packaging import tags from setuptools import Extension, find_packages, setup from setuptools.command.build_ext import build_ext from setuptools.command.install import install from wheel.bdist_wheel import bdist_wheel -from packaging import tags + long_description = "FastDeploy: Large Language Model Serving.\n\n" long_description += "GitHub: https://github.com/PaddlePaddle/FastDeploy\n" long_description += "Email: dltp@baidu.com" @@ -42,10 +43,10 @@ class CustomBdistWheel(bdist_wheel): - """Custom wheel builder for pure Python packages.""" + """Custom wheel builder.""" def finalize_options(self): - """Configure wheel as pure Python and platform-independent.""" + """Configure wheel as {python tag}-{abi tag}-{platform tag}.""" super().finalize_options() tag = next(tags.sys_tags()) self.root_is_pure = False