File: pyzstd_pep517.py

package info (click to toggle)
python-pyzstd 0.17.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,736 kB
  • sloc: python: 7,544; ansic: 3,938; makefile: 5
file content (10 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from setuptools import build_meta as _orig
from setuptools.build_meta import *

def get_requires_for_build_wheel(config_settings=None):
    requires = []
    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(config_settings) + requires