File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" setuptools" , " wheel " ]
2+ requires = [" setuptools>=70.1 " ]
33
44[project ]
55name = " getdents"
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
2- from typing import Tuple
3-
42from setuptools import Extension , setup
5- from wheel .bdist_wheel import bdist_wheel
6-
7-
8- class bdist_wheel_abi3 (bdist_wheel ):
9- def get_tag (self ) -> Tuple [str , str , str ]:
10- # From https://github.com/joerick/python-abi3-package-sample/blob/main/setup.py
11- python , abi , plat = super ().get_tag ()
12-
13- if python .startswith ("cp" ):
14- # on CPython, our wheels are abi3 and compatible back to 3.8
15- return "cp38" , "abi3" , plat
16-
17- return python , abi , plat
18-
193
204setup (
21- cmdclass = {"bdist_wheel" : bdist_wheel_abi3 },
5+ options = {"bdist_wheel" : { "py_limited_api" : "cp38" } },
226 ext_modules = [
237 Extension (
248 "getdents._getdents" ,
You can’t perform that action at this time.
0 commit comments