Skip to content

Commit

Permalink
Refresh Patch #3
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Dec 2, 2024
1 parent 13b7d71 commit 8aa61ee
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions recipe/patches/0003-Mark-wheels-as-any-platform-compatible.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ Subject: [PATCH 3/3] Mark wheels as any platform compatible
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/python-package/hatch_build.py b/python-package/hatch_build.py
index 925c917..710530c 100644
index d81a21cd5..710530ce4 100644
--- a/python-package/hatch_build.py
+++ b/python-package/hatch_build.py
@@ -3,7 +3,6 @@ Custom hook to customize the behavior of Hatchling.
Here, we customize the tag of the generated wheels.
"""

-import sysconfig
@@ -6,13 +6,11 @@ Here, we customize the tag of the generated wheels.
from typing import Any, Dict

from hatchling.builders.hooks.plugin.interface import BuildHookInterface
@@ -11,8 +10,7 @@ from hatchling.builders.hooks.plugin.interface import BuildHookInterface
-from packaging.tags import platform_tags


def get_tag() -> str:
"""Get appropriate wheel tag according to system"""
- tag_platform = sysconfig.get_platform().replace("-", "_").replace(".", "_")
- return f"py3-none-{tag_platform}"
- platform_tag = next(platform_tags())
- return f"py3-none-{platform_tag}"
+ return f"py3-none-any"


class CustomBuildHook(BuildHookInterface):
--
2.34.1

0 comments on commit 8aa61ee

Please sign in to comment.