Skip to content

Commit

Permalink
Merge pull request #2 from gotmax23/pep517-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogdham committed Apr 7, 2024
2 parents ad21f3d + 467bd72 commit dbd4498
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ GitHub: https://github.com/Rogdham/pyzstd

Release note
------------

**Next version (Unreleased)**

#. Fix pyzstd_pep517 parameter name in ``get_requires_for_build_wheel``

**0.15.10 (Mar 24, 2024)**

#. Fix ``SeekableZstdFile`` class can't open new file in appending mode.
Expand Down
8 changes: 4 additions & 4 deletions build_script/pyzstd_pep517.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from setuptools import build_meta as _orig
from setuptools.build_meta import *

def get_requires_for_build_wheel(cfg=None):
def get_requires_for_build_wheel(config_settings=None):
requires = []
if isinstance(cfg, dict) and '--build-option' in cfg:
v = cfg['--build-option']
if isinstance(config_settings, dict) and '--build-option' in config_settings:
v = config_settings['--build-option']
if isinstance(v, (str, list)) and '--cffi' in v:
requires.append('cffi')
return _orig.get_requires_for_build_wheel(cfg) + requires
return _orig.get_requires_for_build_wheel(config_settings) + requires

0 comments on commit dbd4498

Please sign in to comment.