File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ from sysconfig import get_platform
16+
1517from hatchling .builders .hooks .plugin .interface import BuildHookInterface
1618
1719
1820class CustomBuildHook (BuildHookInterface ):
1921 def initialize (self , version , build_data ):
20- """Force platform-specific wheel due to native libraries"""
22+ """Force platform-specific wheel with py3-none tag.
23+
24+ The native libraries (.so, .dylib, .dll) are not Python C extensions -
25+ they're standalone FFI libraries loaded at runtime. This means they
26+ don't depend on a specific Python version's ABI, so we use py3-none
27+ to indicate compatibility with any Python 3.x version.
28+ """
2129 build_data ["pure_python" ] = False
22- build_data ["infer_tag" ] = True
30+ build_data ["infer_tag" ] = False
31+ build_data ["tag" ] = f"py3-none-{ get_platform ().replace ('-' , '_' ).replace ('.' , '_' )} "
You can’t perform that action at this time.
0 commit comments