aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Python-for-Formula-Authors.md
diff options
context:
space:
mode:
authorMike McQuaid2017-01-04 10:53:21 +0000
committerMike McQuaid2017-01-04 10:53:21 +0000
commit127e9def5084063cf33e8acb26a970556ef51148 (patch)
tree7d46e96e7730cd6c00dfa756699ba838931a7854 /docs/Python-for-Formula-Authors.md
parentfc11f633b29e6a2c9c4d49d5fd5452549b328193 (diff)
downloadbrew-127e9def5084063cf33e8acb26a970556ef51148.tar.bz2
Cleanup documentation site
GitHub now nicely generates a documentation site for us at http://brew.sh/brew based on our docs folder. Optimise the output of this and the GitHub docs directory for readability and the various user groupings.
Diffstat (limited to 'docs/Python-for-Formula-Authors.md')
-rw-r--r--docs/Python-for-Formula-Authors.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/Python-for-Formula-Authors.md b/docs/Python-for-Formula-Authors.md
index 716a3b359..93830a6c7 100644
--- a/docs/Python-for-Formula-Authors.md
+++ b/docs/Python-for-Formula-Authors.md
@@ -45,6 +45,7 @@ If you submit a formula with this syntax to core, you may be asked to rewrite it
## Python declarations
Applications that are compatible with Python 2 **should** use the Apple-provided system Python in /usr/bin on systems that provide Python 2.7. To do this, declare:
+
```ruby
depends_on :python if MacOS.version <= :snow_leopard
```
@@ -159,6 +160,7 @@ Bindings should follow the same advice for Python module dependencies as librari
## Installing bindings
If the bindings are installed by invoking a `setup.py`, do something like:
+
```ruby
cd "source/python" do
system "python", *Language::Python.setup_install_args(prefix)