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

stasadev/ddev-python2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

For DDEV v1.23.5 or above run:

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

For earlier versions of DDEV run:

ddev get ddev/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