diff options
| author | Mike McQuaid | 2018-01-07 18:00:45 +0000 |
|---|---|---|
| committer | GitHub | 2018-01-07 18:00:45 +0000 |
| commit | 3e995045786c8b7ec193dbf242546890f2f063e2 (patch) | |
| tree | 91945f22288b85cff2882ceb893a485c94ecfb48 | |
| parent | c6167c3ca9124ca412849cfe23fda363b6cbb1b9 (diff) | |
| parent | 22a74b69c6cce0aafe52668d6d58329aa9051914 (diff) | |
| download | brew-3e995045786c8b7ec193dbf242546890f2f063e2.tar.bz2 | |
Merge pull request #3637 from alyssais/python-docs
docs: fix audit warning in Python formula example
| -rw-r--r-- | docs/Python-for-Formula-Authors.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/Python-for-Formula-Authors.md b/docs/Python-for-Formula-Authors.md index 13b96e563..723601afe 100644 --- a/docs/Python-for-Formula-Authors.md +++ b/docs/Python-for-Formula-Authors.md @@ -51,7 +51,7 @@ poet some_package deactivate ``` -Homebrew provides helper methods for instantiating and populating virtualenvs. You can use them by putting `include Language::Python::Virtualenv` on the `Formula` class definition, above `def install`. +Homebrew provides helper methods for instantiating and populating virtualenvs. You can use them by putting `include Language::Python::Virtualenv` at the top of the `Formula` class definition. For most applications, all you will need to write is: @@ -85,6 +85,8 @@ Installing a formula with dependencies will look like this: ```ruby class Foo < Formula + include Language::Python::Virtualenv + url "..." resource "six" do @@ -97,8 +99,6 @@ class Foo < Formula sha256 "09bfcd8f3c239c75e77b3ff05d782ab2c1aed0892f250ce2adf948d4308fe9dc" end - include Language::Python::Virtualenv - def install virtualenv_install_with_resources end |
