python: reinstate pip's --no-binary

This commit is contained in:
Branch Vincent 2022-12-19 23:25:53 -08:00
parent 30c3fc546f
commit db6d3156f2
No known key found for this signature in database
GPG Key ID: AE66FEB122C01EDC
2 changed files with 7 additions and 6 deletions

View File

@ -304,7 +304,8 @@ module Language
def do_install(targets)
targets = Array(targets)
@formula.system @venv_root/"bin/pip", "install",
"-v", "--no-deps", "--use-feature=no-binary-enable-wheel-cache",
"-v", "--no-deps", "--no-binary", ":all:",
"--use-feature=no-binary-enable-wheel-cache",
"--ignore-installed", *targets
end
end

View File

@ -24,7 +24,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
describe "#pip_install" do
it "accepts a string" do
expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps",
.with(dir/"bin/pip", "install", "-v", "--no-deps", "--no-binary", ":all:",
"--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", "foo")
.and_return(true)
virtualenv.pip_install "foo"
@ -32,7 +32,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
it "accepts a multi-line strings" do
expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps",
.with(dir/"bin/pip", "install", "-v", "--no-deps", "--no-binary", ":all:",
"--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", "foo", "bar")
.and_return(true)
@ -44,12 +44,12 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
it "accepts an array" do
expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps",
.with(dir/"bin/pip", "install", "-v", "--no-deps", "--no-binary", ":all:",
"--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", "foo")
.and_return(true)
expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps",
.with(dir/"bin/pip", "install", "-v", "--no-deps", "--no-binary", ":all:",
"--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", "bar")
.and_return(true)
@ -61,7 +61,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
expect(res).to receive(:stage).and_yield
expect(formula).to receive(:system)
.with(dir/"bin/pip", "install", "-v", "--no-deps",
.with(dir/"bin/pip", "install", "-v", "--no-deps", "--no-binary", ":all:",
"--use-feature=no-binary-enable-wheel-cache", "--ignore-installed", Pathname.pwd)
.and_return(true)