
DDEV Python 2
Overview
Python 2 has reached its end of life.
This add-on integrates legacy Python 2 inside the ddev-webserver
into your DDEV project.
It is only needed if your npm
setup requires Python 2 to build dependencies.
Installation
For DDEV v1.23.5 or above run:
ddev add-on get stasadev/ddev-python2
ddev restart
For earlier versions of DDEV run:
ddev get stasadev/ddev-python2
ddev restart
Usage
After installation, you can run Python 2:
python2.7
(installed at /usr/bin/python2.7
)
python
(symlink to python2.7
installed at /usr/local/bin/python
)
This add-on also adds packages that are normally required for npm
build, see config.python2.yaml. Remove or replace the contents of this file if you only need Python 2.
Credits
Contributed and maintained by @stasadev