File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 2
2
requires = [
3
3
# First version of setuptools to support pyproject.toml configuration
4
4
" setuptools>=61.0.0" ,
5
- " wheel" ,
6
5
# Must be kept in sync with `project.dependencies`
7
6
" cffi>=1.0.0" ,
8
7
" pkgconfig>=1.5" ,
Original file line number Diff line number Diff line change 2
2
3
3
from os import path
4
4
from setuptools import setup
5
- from wheel .bdist_wheel import bdist_wheel
6
5
7
6
base_dir = path .dirname (__file__ )
8
7
src_dir = path .join (base_dir , 'pyvips' , 'pyvips' )
12
11
sys .path .insert (0 , src_dir )
13
12
14
13
15
- class bdist_wheel_abi3 (bdist_wheel ):
16
- def get_tag (self ):
17
- python , abi , plat = super ().get_tag ()
18
-
19
- if python .startswith ('cp' ):
20
- # on CPython, our wheels are abi3 and compatible back to 3.7
21
- return 'cp37' , 'abi3' , plat
22
-
23
- return python , abi , plat
24
-
25
-
26
14
if 'bdist_wheel' in sys .argv :
27
15
cffi_modules = ['pyvips/pyvips/pyvips_build.py:ffibuilder' ]
28
16
else :
29
17
cffi_modules = []
30
18
31
19
setup (
32
20
cffi_modules = cffi_modules ,
33
- cmdclass = {'bdist_wheel' : bdist_wheel_abi3 },
21
+ options = {'bdist_wheel' : { 'py_limited_api' : f'cp { sys . version_info . major } { sys . version_info . minor } ' } },
34
22
)
You can’t perform that action at this time.
0 commit comments