Formula#exec_cmd: coerce arg to string before start_with?
This commit is contained in:
parent
dc1f58dead
commit
997a3b5212
@ -663,7 +663,7 @@ class Formula
|
||||
# special cases to this method.
|
||||
if cmd == "python"
|
||||
setup_py_in_args = %w[setup.py build.py].include?(args.first)
|
||||
setuptools_shim_in_args = args.any? { |a| a.start_with? "import setuptools" }
|
||||
setuptools_shim_in_args = args.any? { |a| a.to_s.start_with? "import setuptools" }
|
||||
if setup_py_in_args || setuptools_shim_in_args
|
||||
ENV.refurbish_args
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user