File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import os
16+ import platform
1617import re
1718import subprocess
19+ import sys
1820from datetime import date
1921
2022from setuptools import find_packages , setup
@@ -34,6 +36,24 @@ def get_commit_id() -> str:
3436 return commit_id
3537
3638
39+ def plat_name ():
40+ # Default Linux platform tag
41+ plat_name = "manylinux2014_x86_64"
42+
43+ if sys .platform == "darwin" :
44+ # macOS platform detection
45+ if platform .machine () == "x86_64" :
46+ plat_name = "macosx_12_0_x86_64"
47+ else :
48+ plat_name = "macosx_12_0_arm64"
49+ elif sys .platform .startswith ("linux" ):
50+ # Linux platform detection
51+ if platform .machine () == "aarch64" :
52+ plat_name = "manylinux_2_28_aarch64"
53+
54+ return plat_name
55+
56+
3757def complete_version_file (* filepath ):
3858 today = date .today ()
3959 dstr = today .strftime ("%Y%m%d" )
@@ -106,5 +126,8 @@ def read_requirements():
106126 "Programming Language :: Python :: 3.10" ,
107127 "Programming Language :: Python :: 3.11" ,
108128 ],
129+ options = {
130+ "bdist_wheel" : {"plat_name" : plat_name ()},
131+ },
109132 license = "Apache 2.0" ,
110133 )
You can’t perform that action at this time.
0 commit comments