This repository allows you to install legacy Python2 inside ddev-webserver
in a DDEV project.
This is only required if your npm
uses Python2 to build its dependencies.
ddev get stasadev/ddev-python2
ddev restart
After installation, you can run Python2:
python2.7
(installed at/usr/bin/python2.7
)python
(symlink topython2.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 Python2.
Contributed and maintained by @stasadev