Merge pull request #20554 from branchvincent/setup_install_args
Deprecate `Language::Python.setup_install_args`
This commit is contained in:
commit
a7b852014a
@ -1,11 +1,15 @@
|
|||||||
# typed: strict
|
# typed: strict
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require "utils/output"
|
||||||
|
|
||||||
module Language
|
module Language
|
||||||
# Helper functions for Python formulae.
|
# Helper functions for Python formulae.
|
||||||
#
|
#
|
||||||
# @api public
|
# @api public
|
||||||
module Python
|
module Python
|
||||||
|
extend ::Utils::Output::Mixin
|
||||||
|
|
||||||
sig { params(python: T.any(String, Pathname)).returns(T.nilable(Version)) }
|
sig { params(python: T.any(String, Pathname)).returns(T.nilable(Version)) }
|
||||||
def self.major_minor_version(python)
|
def self.major_minor_version(python)
|
||||||
version = `#{python} --version 2>&1`.chomp[/(\d\.\d+)/, 1]
|
version = `#{python} --version 2>&1`.chomp[/(\d\.\d+)/, 1]
|
||||||
@ -84,6 +88,7 @@ module Language
|
|||||||
|
|
||||||
sig { params(prefix: Pathname, python: T.any(String, Pathname)).returns(T::Array[String]) }
|
sig { params(prefix: Pathname, python: T.any(String, Pathname)).returns(T::Array[String]) }
|
||||||
def self.setup_install_args(prefix, python = "python3")
|
def self.setup_install_args(prefix, python = "python3")
|
||||||
|
# odeprecated "Language::Python.setup_install_args", "pip and `std_pip_args`"
|
||||||
shim = <<~PYTHON
|
shim = <<~PYTHON
|
||||||
import setuptools, tokenize
|
import setuptools, tokenize
|
||||||
__file__ = 'setup.py'
|
__file__ = 'setup.py'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user