From e3ec061a3a85a2488f2b19c8221665ef244b7068 Mon Sep 17 00:00:00 2001 From: commitay Date: Mon, 2 Jul 2018 16:37:19 +1000 Subject: [PATCH 1/3] language/python: python 3.7 --- Library/Homebrew/language/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index 171d7e8244..b3b882b8a5 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -8,7 +8,7 @@ module Language Version.create(version.to_s) end - def self.homebrew_site_packages(version = "3.6") + def self.homebrew_site_packages(version = "3.7") HOMEBREW_PREFIX/"lib/python#{version}/site-packages" end From 1d18c24e3c8cb9dbed7f12998ee2729123bfe1b2 Mon Sep 17 00:00:00 2001 From: commitay Date: Mon, 2 Jul 2018 16:37:19 +1000 Subject: [PATCH 2/3] docs/Gems,-Eggs-and-Perl-Modules.md: python 3.y --- docs/Gems,-Eggs-and-Perl-Modules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Gems,-Eggs-and-Perl-Modules.md b/docs/Gems,-Eggs-and-Perl-Modules.md index 14d38003b3..31c1e210e7 100644 --- a/docs/Gems,-Eggs-and-Perl-Modules.md +++ b/docs/Gems,-Eggs-and-Perl-Modules.md @@ -11,8 +11,8 @@ Starting with OS X Lion (10.7), you need `sudo` to install to these like so: `sudo gem install`, `sudo easy_install` or `sudo cpan -i`. An option to avoid sudo is to use an access control list: -`chmod +a 'user:YOUR_NAME_HERE allow add_subdirectory,add_file,delete_child,directory_inherit' /Library/Python/3.6/site-packages`, -for example, will let you add packages to Python 3.6 as yourself. That +`chmod +a 'user:YOUR_NAME_HERE allow add_subdirectory,add_file,delete_child,directory_inherit' /Library/Python/3.y/site-packages`, +for example, will let you add packages to Python 3.y as yourself. That is probably safer than changing the group ownership of the directory. ### So why was I using sudo? From d1ca4f4328be75ffdc5c4336528546a1150de72c Mon Sep 17 00:00:00 2001 From: commitay Date: Mon, 2 Jul 2018 16:37:20 +1000 Subject: [PATCH 3/3] docs/Homebrew-and-Python.md: python 3.y --- docs/Homebrew-and-Python.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Homebrew-and-Python.md b/docs/Homebrew-and-Python.md index 38e2f42463..07683f4e7f 100644 --- a/docs/Homebrew-and-Python.md +++ b/docs/Homebrew-and-Python.md @@ -51,12 +51,12 @@ The `site-packages` is a directory that contains Python modules (especially bind $(brew --prefix)/lib/pythonX.Y/site-packages ``` -So, for Python 3.6.x, you'll find it at `/usr/local/lib/python3.6/site-packages`. +So, for Python 3.y.z, you'll find it at `/usr/local/lib/python3.y/site-packages`. -Python 3.6 also searches for modules in: +Python 3.y also searches for modules in: -- `/Library/Python/3.6/site-packages` -- `~/Library/Python/3.6/lib/python/site-packages` +- `/Library/Python/3.y/site-packages` +- `~/Library/Python/3.y/lib/python/site-packages` Homebrew's `site-packages` directory is first created if (1) any Homebrew formula with Python bindings are installed, or (2) upon `brew install python`.