|
49 | 49 | f.libexec, "python", { system_site_packages: true, without_pip: true }
|
50 | 50 | ).and_return(venv)
|
51 | 51 | expect(venv).to receive(:pip_install).with([r_a, r_b, r_c, r_d])
|
52 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 52 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
53 | 53 | f.virtualenv_install_with_resources(using: "python")
|
54 | 54 | end
|
55 | 55 |
|
|
58 | 58 | f.libexec, "python3.12", { system_site_packages: true, without_pip: true }
|
59 | 59 | ).and_return(venv)
|
60 | 60 | expect(venv).to receive(:pip_install).with([r_a, r_b, r_c, r_d])
|
61 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 61 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
62 | 62 | f.virtualenv_install_with_resources(using: "[email protected]")
|
63 | 63 | end
|
64 | 64 |
|
65 | 65 | it "skips a `without` resource string and installs remaining resources in order" do
|
66 | 66 | expect(f).to receive(:virtualenv_create).and_return(venv)
|
67 | 67 | expect(venv).to receive(:pip_install).with([r_a, r_b, r_d])
|
68 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 68 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
69 | 69 | f.virtualenv_install_with_resources(using: "python", without: r_c.name)
|
70 | 70 | end
|
71 | 71 |
|
72 | 72 | it "skips all resources in `without` array and installs remaining resources in order" do
|
73 | 73 | expect(f).to receive(:virtualenv_create).and_return(venv)
|
74 | 74 | expect(venv).to receive(:pip_install).with([r_b, r_c])
|
75 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 75 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
76 | 76 | f.virtualenv_install_with_resources(using: "python", without: [r_d.name, r_a.name])
|
77 | 77 | end
|
78 | 78 |
|
|
91 | 91 | it "installs a `start_with` resource string and then remaining resources in order" do
|
92 | 92 | expect(f).to receive(:virtualenv_create).and_return(venv)
|
93 | 93 | expect(venv).to receive(:pip_install).with([r_c, r_a, r_b, r_d])
|
94 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 94 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
95 | 95 | f.virtualenv_install_with_resources(using: "python", start_with: r_c.name)
|
96 | 96 | end
|
97 | 97 |
|
98 | 98 | it "installs all resources in `start_with` array and then remaining resources in order" do
|
99 | 99 | expect(f).to receive(:virtualenv_create).and_return(venv)
|
100 | 100 | expect(venv).to receive(:pip_install).with([r_d, r_b, r_a, r_c])
|
101 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 101 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
102 | 102 | f.virtualenv_install_with_resources(using: "python", start_with: [r_d.name, r_b.name])
|
103 | 103 | end
|
104 | 104 |
|
|
117 | 117 | it "installs an `end_with` resource string as last resource" do
|
118 | 118 | expect(f).to receive(:virtualenv_create).and_return(venv)
|
119 | 119 | expect(venv).to receive(:pip_install).with([r_a, r_c, r_d, r_b])
|
120 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 120 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
121 | 121 | f.virtualenv_install_with_resources(using: "python", end_with: r_b.name)
|
122 | 122 | end
|
123 | 123 |
|
124 | 124 | it "installs all resources in `end_with` array after other resources are installed" do
|
125 | 125 | expect(f).to receive(:virtualenv_create).and_return(venv)
|
126 | 126 | expect(venv).to receive(:pip_install).with([r_a, r_d, r_c, r_b])
|
127 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 127 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
128 | 128 | f.virtualenv_install_with_resources(using: "python", end_with: [r_c.name, r_b.name])
|
129 | 129 | end
|
130 | 130 |
|
|
143 | 143 | it "installs resources in correct order when combining `without`, `start_with` and `end_with" do
|
144 | 144 | expect(f).to receive(:virtualenv_create).and_return(venv)
|
145 | 145 | expect(venv).to receive(:pip_install).with([r_d, r_c, r_b])
|
146 |
| - expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: false }) |
| 146 | + expect(venv).to receive(:pip_install_and_link).with(buildpath, { link_manpages: true }) |
147 | 147 | f.virtualenv_install_with_resources(using: "python", without: r_a.name,
|
148 | 148 | start_with: r_d.name, end_with: r_b.name)
|
149 | 149 | end
|
|
254 | 254 | expect(virtualenv).to receive(:pip_install).with("foo", { build_isolation: true })
|
255 | 255 | expect(Dir).to receive(:[]).with(src_bin/"*").twice.and_return(bin_before, bin_after)
|
256 | 256 |
|
257 |
| - virtualenv.pip_install_and_link "foo" |
| 257 | + virtualenv.pip_install_and_link("foo", link_manpages: false) |
258 | 258 |
|
259 | 259 | expect(src_bin/"kilroy").to exist
|
260 | 260 | expect(dest_bin/"kilroy").to exist
|
|
0 commit comments