-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from gotmax23/pep517-fix
- Loading branch information
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |