mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
python: stop passing no-user flag on installation
This commit is contained in:
parent
3ff5795ae1
commit
c8e99e5185
@ -287,7 +287,7 @@ module Language
|
|||||||
targets = Array(targets)
|
targets = Array(targets)
|
||||||
@formula.system @venv_root/"bin/pip", "install",
|
@formula.system @venv_root/"bin/pip", "install",
|
||||||
"-v", "--no-deps", "--no-binary", ":all:",
|
"-v", "--no-deps", "--no-binary", ":all:",
|
||||||
"--no-user", "--ignore-installed", *targets
|
"--ignore-installed", *targets
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -24,7 +24,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
|
|||||||
it "accepts a string" do
|
it "accepts a string" do
|
||||||
expect(formula).to receive(:system)
|
expect(formula).to receive(:system)
|
||||||
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
||||||
"--no-binary", ":all:", "--no-user", "--ignore-installed", "foo")
|
"--no-binary", ":all:", "--ignore-installed", "foo")
|
||||||
.and_return(true)
|
.and_return(true)
|
||||||
virtualenv.pip_install "foo"
|
virtualenv.pip_install "foo"
|
||||||
end
|
end
|
||||||
@ -32,7 +32,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
|
|||||||
it "accepts a multi-line strings" do
|
it "accepts a multi-line strings" do
|
||||||
expect(formula).to receive(:system)
|
expect(formula).to receive(:system)
|
||||||
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
||||||
"--no-binary", ":all:", "--no-user", "--ignore-installed", "foo", "bar")
|
"--no-binary", ":all:", "--ignore-installed", "foo", "bar")
|
||||||
.and_return(true)
|
.and_return(true)
|
||||||
|
|
||||||
virtualenv.pip_install <<~EOS
|
virtualenv.pip_install <<~EOS
|
||||||
@ -44,12 +44,12 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
|
|||||||
it "accepts an array" do
|
it "accepts an array" do
|
||||||
expect(formula).to receive(:system)
|
expect(formula).to receive(:system)
|
||||||
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
||||||
"--no-binary", ":all:", "--no-user", "--ignore-installed", "foo")
|
"--no-binary", ":all:", "--ignore-installed", "foo")
|
||||||
.and_return(true)
|
.and_return(true)
|
||||||
|
|
||||||
expect(formula).to receive(:system)
|
expect(formula).to receive(:system)
|
||||||
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
||||||
"--no-binary", ":all:", "--no-user", "--ignore-installed", "bar")
|
"--no-binary", ":all:", "--ignore-installed", "bar")
|
||||||
.and_return(true)
|
.and_return(true)
|
||||||
|
|
||||||
virtualenv.pip_install ["foo", "bar"]
|
virtualenv.pip_install ["foo", "bar"]
|
||||||
@ -61,7 +61,7 @@ describe Language::Python::Virtualenv::Virtualenv, :needs_python do
|
|||||||
expect(res).to receive(:stage).and_yield
|
expect(res).to receive(:stage).and_yield
|
||||||
expect(formula).to receive(:system)
|
expect(formula).to receive(:system)
|
||||||
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
.with(dir/"bin/pip", "install", "-v", "--no-deps",
|
||||||
"--no-binary", ":all:", "--no-user", "--ignore-installed", Pathname.pwd)
|
"--no-binary", ":all:", "--ignore-installed", Pathname.pwd)
|
||||||
.and_return(true)
|
.and_return(true)
|
||||||
|
|
||||||
virtualenv.pip_install res
|
virtualenv.pip_install res
|
||||||
|
Loading…
x
Reference in New Issue
Block a user