Skip to content

docs: update README.md #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 20 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,43 @@
[![tests](https://github.com/stasadev/ddev-python2/actions/workflows/tests.yml/badge.svg)](https://github.com/stasadev/ddev-python2/actions/workflows/tests.yml) ![project is maintained](https://img.shields.io/maintenance/yes/2025.svg)
[![add-on registry](https://img.shields.io/badge/DDEV-Add--on_Registry-blue)](https://addons.ddev.com)
[![tests](https://github.com/stasadev/ddev-python2/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/stasadev/ddev-python2/actions/workflows/tests.yml?query=branch%3Amain)
[![last commit](https://img.shields.io/github/last-commit/stasadev/ddev-python2)](https://github.com/stasadev/ddev-python2/commits)
[![release](https://img.shields.io/github/v/release/stasadev/ddev-python2)](https://github.com/stasadev/ddev-python2/releases/latest)

# DDEV Python2 Add-on <!-- omit in toc -->
# DDEV Python 2

* [What is ddev-python2?](#what-is-ddev-python2)
* [Installation](#installation)
* [Usage](#usage)
## Overview

## What is ddev-python2?
[Python 2](https://www.python.org/doc/sunset-python-2/) has reached its end of life.

This repository allows you to install [legacy Python2](https://www.python.org/doc/sunset-python-2/) inside `ddev-webserver` in a DDEV project.
This add-on integrates legacy Python 2 inside the `ddev-webserver` into your [DDEV](https://ddev.com/) project.

This is only required if your `npm` uses Python2 to build its dependencies.
It is only needed if your `npm` setup requires Python 2 to build dependencies.

## Installation

For DDEV v1.23.5 or above run
For DDEV v1.23.5 or above run:

```sh
ddev add-on get stasadev/ddev-python2
```

For earlier versions of DDEV run

```sh
ddev get stasadev/ddev-python2
```bash
ddev add-on get ddev/ddev-python2
ddev restart
```

Then restart your project
For earlier versions of DDEV run:

```sh
```bash
ddev get ddev/ddev-python2
ddev restart
```

## Usage

After installation, you can run Python2:
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](./config.python2.yaml). Remove or replace the contents of this file if you only need Python2.
This add-on also adds packages that are normally required for `npm` build, see [config.python2.yaml](./config.python2.yaml). Remove or replace the contents of this file if you only need Python 2.

## Credits

**Contributed and maintained by [@stasadev](https://github.com/stasadev)**