[go: up one dir, main page]

Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

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