Pythonのバージョンを変更し、新しいphp formulaが追加されたMac用パッケージマネージャー「Homebrew v1.6」がリリース。

Homebrewのアイコン。 Developer
記事内に広告が含まれています。
スポンサーリンク
スポンサーリンク
スポンサーリンク

 Pythonのバージョンを変更し、新しいphp formulaが追加されたMac用パッケージマネージャー「Homebrew v1.6」がリリースされています。詳細は以下から。

Homebrewのアイコン。

 Mac用パッケージマネージャー「Homebrew」を管理しているGitHubのMike McQuaidさんらは現地時間2018年04月09日、今年01月にリリースしたMac用パッケージマネージャHomebrew v1.5からの複数のリクエストを受け付け、不具合を修正した「Homebrew v1.6」を新たにリリースしたと発表しています。

Today I’d like to announce Homebrew 1.6.0. The most significant changes since 1.5.0 are brew install python installing Python 3, the deprecation of Homebrew/php and various formula API deprecations.

Homebrew 1.6.0 – Hacker News

Python問題

 Homebrewはv1.5リリース時に、これまで”brew install python”でインストールされたPythonのバージョンを03月01日をもってPython v3.xへ変更すると発表していましたが、この変更は施行後に「Mac OS XやCygwinなどUnixライクなディストリビューションはPython 2をpython2コマンドとして、Python 3をpython3コマンドとしてPATHにインストールし、Python 2がインストールされている場合には基本的にpythonコマンドとする」という

Recommendation

  • Unix-like software distributions (including systems like Mac OS X and Cygwin) should install the python2 command into the default path whenever a version of the Python 2 interpreter is installed, and the same for python3 and the Python 3 interpreter.
  • When invoked, python2 should run some version of the Python 2 interpreter, and python3 should run some version of the Python 3 interpreter.
  • The more general python command should be installed whenever any version of Python 2 is installed and should invoke the same version of Python as the python2 command (however, note that some distributions have already chosen to have python implement the python3 command; see the Rationale and Migration Notes below).

PEP 394 — The "python" Command on Unix-Like Systems | Python.org

2011年に公開されたPEP 394規約に準拠していないという話が持ち上がり、Homebrewはこの指摘から再び”/usr/local/bin/python”をPython 2に戻してメンテナンスを行っていましたが、

The python formula was upgraded to Python 3.x and python@2 formula was added for installing Python 2.7. We initially did not comply with PEP 394 and this was a mistake; sorry for the pain. We heard your feedback on Python 3 and made brew install python and brew install python@2 PEP 394 compliant. We will not change this again until PEP 394 has changed.

Homebrew 1.6.0 – Hacker News

Homebrew v1.5からv1.6までの間には、”brew install python”がPython 3をインストールすることに加え、“brew install python@2”がPEP 394に準拠のPython 2に変更されたそうで(methaneさんのブログ参照)、Homebrewは公式ブログの中でPEP 394が変更されるまで この仕様を再び変更することはないとコメントしています。

Homebrew v1.6 Python

$brew info python
Python has been insalled as /usr/local/python3
If you need Homebrew's Python2.7 run brew install python@2

 また、Homebrew v1.6ではHomebrew/phptapがアーカイブ化され、新しいphpおよびphp@* formulaeがHomebrew/coreに加えられているので、ユーザーの方はチェックしてみて下さい。

コメント

タイトルとURLをコピーしました