8000 DEP: Deprecate quote_args (from numpy.distutils.misc_util) by mwtoews · Pull Request #19811 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DEP: Deprecate quote_args (from numpy.distutils.misc_util) #19811

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion numpy/distutils/misc_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def clean_up_temporary_directory():
'get_script_files', 'get_lib_source_files', 'get_data_files',
'dot_join', 'get_frame', 'minrelpath', 'njoin',
'is_sequence', 'is_string', 'as_list', 'gpaths', 'get_language',
'quote_args', 'get_build_architecture', 'get_info', 'get_pkg_info',
'get_build_architecture', 'get_info', 'get_pkg_info',
'get_num_build_jobs']

class InstallableLib:
Expand Down Expand Up @@ -110,6 +110,13 @@ def get_num_build_jobs():
return max(x for x in cmdattr if x is not None)

def quote_args(args):
"""Quote list of arguments.

.. deprecated:: 1.22.
"""
import warnings
warnings.warn('"quote_args" is deprecated.',
DeprecationWarning, stacklevel=2)
# don't used _nt_quote_args as it does not check if
# args items already have quotes or not.
args = list(args)
Expand Down
0