Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.61 KB

File metadata and controls

38 lines (24 loc) · 1.61 KB

add-on registry tests last commit release

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

ddev add-on get ddev/ddev-python2
ddev restart

After installation, make sure to commit the .ddev directory to version control.

Usage

Command Description
ddev exec python Run Python 2.7.18 inside the web container.
Installed at /usr/local/bin/python
ddev exec pip Run pip 20.0.2 inside the web container.
Installed at /usr/local/bin/pip

This add-on also installs the build-essential package, which is usually required for the npm build, see config.python2.yaml. Remove or replace the contents of this file if you only need Python 2.

Credits

Contributed by @stasadev

Maintained by the DDEV team