mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
parent
3fe32053a7
commit
1e7bff8081
@ -98,14 +98,12 @@ def install
|
|||||||
venv = virtualenv_create(libexec)
|
venv = virtualenv_create(libexec)
|
||||||
# Install all of the resources declared on the formula into the virtualenv.
|
# Install all of the resources declared on the formula into the virtualenv.
|
||||||
venv.pip_install resources
|
venv.pip_install resources
|
||||||
# `link_scripts` takes a look at the virtualenv's bin directory before and
|
# `pip_install_and_link` takes a look at the virtualenv's bin directory
|
||||||
# after executing the block which is passed into it. If the block caused any
|
# before and after installing its argument. New scripts will be symlinked
|
||||||
# new scripts to be written to the virtualenv's bin directory, link_scripts
|
# into `bin`. `pip_install_and_link buildpath` will install the package
|
||||||
# will symlink those scripts into the path given as its argument (here, the
|
# that the formula points to, because buildpath is the location where the
|
||||||
# formula's `bin` directory in the Cellar.)
|
# formula's tarball was unpacked.
|
||||||
# `pip_install buildpath` will install the package that the formula points to,
|
venv.pip_install_and_link buildpath
|
||||||
# because buildpath is the location where the formula's tarball was unpacked.
|
|
||||||
venv.link_scripts(bin) { venv.pip_install buildpath }
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user