You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
7 months ago
|
From 467bd72ad4caadc1b006fc913452b3598c369b73 Mon Sep 17 00:00:00 2001
|
||
|
From: Maxwell G <maxwell@gtmx.me>
|
||
|
Date: Sun, 7 Apr 2024 00:29:36 +0000
|
||
|
Subject: [PATCH] pyzstd_pep517: name config_settings argument correctly
|
||
|
|
||
|
Ref: https://peps.python.org/pep-0517/#get-requires-for-build-wheel
|
||
|
---
|
||
|
build_script/pyzstd_pep517.py | 8 ++++----
|
||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||
|
|
||
|
diff --git a/build_script/pyzstd_pep517.py b/build_script/pyzstd_pep517.py
|
||
|
index cea7c94..7b4b3f8 100644
|
||
|
--- a/build_script/pyzstd_pep517.py
|
||
|
+++ b/build_script/pyzstd_pep517.py
|
||
|
@@ -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
|
||
|
\ No newline at end of file
|
||
|
+ return _orig.get_requires_for_build_wheel(config_settings) + requires
|