Skip to content

Python 2 for older npm builds with node-gyp inside DDEV

License

Notifications You must be signed in to change notification settings

ddev/ddev-python2

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

About

Python 2 for older npm builds with node-gyp inside DDEV

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages