LoginSignup
0
1

More than 3 years have passed since last update.

Plone 5.2 on Python3.7 のインストール方法

Last updated at Posted at 2019-02-23

概要

(2019年7月17日 Plone 5.2ソフトリリースに伴いタイトルから変更)
(旧タイトル Plone 5.2RC1 on Python3.7 のインストール方法)

(2019年3月14日 Plone 5.2RC1リリースに伴いタイトルから変更)
(旧旧タイトル Plone 5.2b1 on Python3.7 のインストール方法)

Ploneは、いままでPython2.7で動作をしていました。ご存じの方も多いと思いますがPython2は2020年1月で開発が終了されEOLとなります。

Ploneコミュニティでは数年の年月を使い、Python3で動作するように改修しています。この開発バージョンが5.2としてソフトリリース(公式なインストーラが準備されるまでのサイレントリリース)されました。

以下にインストール方法を記します。

インストール方法

Python仮想環境

Python3.7が導入済み(Ubuntuの場合は python-venv も導入済み)

インストール先のフォルダを作る (ここでは、 ~/plone52 とした)

$ mkdir ~/plone52
$ cd ~/plone52
$ python3.7 -m venv .
$ ./bin/pip install -r https://dist.plone.org/release/5.2-latest/requirements.txt

buildout.cfg

~/plone52 直下に buildout.cfg を以下の内容で作る

[buildout]
parts = instance
extends = https://dist.plone.org/release/5.2-latest/versions.cfg

[instance]
recipe = plone.recipe.zope2instance
wsgi = on
eggs =
  Plone
  Pillow

[instance:python2]
wsgi = off

buildoutの実行

$ . bin/activate
(plone52) $ ./bin/buildout

途中で、ユーザ名などの入力を求められます。

Username: admin
Password: 
Verify password: 

起動

(plone52) $ ./bin/instance fg

http://localhost:8080
で閲覧できる

0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1