kuroの覚え書き

96の個人的覚え書き

homebrewでpython3.6(前のバージョン)をインストールする

$ cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
$ git log python.rb
commit b02eee23d9ac8e1027a212f269da6edd4c1f0f5f
Author: BrewTestBot <homebrew-test-bot@lists.sfconservancy.org>
Date:   Mon Apr 20 06:02:17 2020 +0000

    python: update 3.7.7_1 bottle.

commit 8bcd19011df9b5d42f5286bd5f3ec65e2aafc8c7
Author: Michka Popoff <michkapopoff@gmail.com>
Date:   Mon Apr 20 08:01:09 2020 +0200

    python: bump revision for libffi (#20152)

commit 4f455d5f8c2d45682448416d53d0c47355445177
Author: Michka Popoff <michkapopoff@gmail.com>
Date:   Sat Apr 18 18:17:50 2020 +0200

    python: fix style for Linuxbrew

・・・・・

こんな感じにgit logを開く
とにかく3.7を入れちゃうとモジュール関係も最新を入れてしまうのでGLIBC_2.18が必要となってしまうので、3.6に戻ってもらう。

commit ac64d11bca23f0d221967fef3b89e1d30053e067
Author: LinuxbrewTestBot <testbot@linuxbrew.sh>
Date:   Sun Jun 17 15:53:29 2018 +0000

    python: update 3.6.5_1 bottle for Linuxbrew.

commit 3ec730ba2ea8fcbd8fb853778b07236c3edb02c1
Merge: d07628b798 597da37dcc
Date:   Sun Jun 17 17:23:04 2018 +0200

    Merge branch homebrew/master into linuxbrew/master
    
     Conflicts:
            Formula/gdbm.rb
            Formula/pipenv.rb
            Formula/pre-commit.rb
            Formula/python.rb
            Formula/python@2.rb
            Formula/sip.rb
            Formula/vim@7.4.rb

commit f2a764ef944b1080be64bd88dca9a1d80130c558
Author: BrewTestBot <brew-test-bot@googlegroups.com>
Date:   Sun Jun 17 13:24:46 2018 +0000

    python: update 3.6.5_1 bottle.

commit b60c0325575ed4c3c90ba061880a79bc0c208cf0
Author: commitay <commitay@users.noreply.github.com>
Date:   Sun Jun 17 18:01:44 2018 +1000

    python: revision for gdbm
    
    Also, update `setuptools` and `wheel` resources

commit 5f5331172328b5d21592518fece5c332c42bc770
Merge: dbc1429eab c1f561a772
Author: Michka Popoff <michkapopoff@gmail.com>
Date:   Wed Jun 13 23:07:55 2018 +0200

    Merge branch homebrew/master into linuxbrew/master

commit c1f561a772a747d711657afa2644287aa0cc9a40
Author: commitay <commitay@users.noreply.github.com>
Date:   Wed Jun 13 19:26:30 2018 +1000

    python 3.7.0rc1 (devel) (#28975)

ここでやっと3.6登場

commit 0036460b7cf3f16e5e02880d893717ee86404ef3
Author: Chuancong Gao <chuanconggao@users.noreply.github.com>
Date:   Thu Mar 29 19:40:41 2018 -0700

    python 3.6.5

このへんで行くか。

$ git checkout 0036460b7cf3f16e5e02880d893717ee86404ef3 python.rb
$ HOMEBREW_NO_AUTO_UPDATE=1 brew install python
Warning: Calling 'devel' blocks in formulae is deprecated! Use 'head' blocks or @-versioned formulae instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb:15

==> Downloading https://files.pythonhosted.org/packages/72/c2/c09362ab29338413ab
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/c4/44/e6b8056b6c8f2bfd14
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/fa/b4/f9886517624a4dcb81
######################################################################## 100.0%
==> Downloading https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
##############################                                   [  938.835230] serial8250: too much work for irq4
######################################################################## 100.0%
Warning: Calling 'devel' blocks in formulae is deprecated! Use 'head' blocks or @-versioned formulae instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb:15

Error: An exception occurred within a child process:
  NoMethodError: undefined method `installed?' for OS::Mac::CLT:Module
Did you mean?  instance_of?

うーん、やっぱりだめか?

次はanacondaでトライ