|
1 | | -[](https://github.com/stasadev/ddev-python2/actions/workflows/tests.yml)  |
| 1 | +[](https://addons.ddev.com) |
| 2 | +[](https://github.com/stasadev/ddev-python2/actions/workflows/tests.yml?query=branch%3Amain) |
| 3 | +[](https://github.com/stasadev/ddev-python2/commits) |
| 4 | +[](https://github.com/stasadev/ddev-python2/releases/latest) |
2 | 5 |
|
3 | | -# DDEV Python2 Add-on <!-- omit in toc --> |
| 6 | +# DDEV Python 2 |
4 | 7 |
|
5 | | -* [What is ddev-python2?](#what-is-ddev-python2) |
6 | | -* [Installation](#installation) |
7 | | -* [Usage](#usage) |
| 8 | +## Overview |
8 | 9 |
|
9 | | -## What is ddev-python2? |
| 10 | +[Python 2](https://www.python.org/doc/sunset-python-2/) has reached its end of life. |
10 | 11 |
|
11 | | -This repository allows you to install [legacy Python2](https://www.python.org/doc/sunset-python-2/) inside `ddev-webserver` in a DDEV project. |
| 12 | +This add-on integrates legacy Python 2 inside the `ddev-webserver` into your [DDEV](https://ddev.com/) project. |
12 | 13 |
|
13 | | -This is only required if your `npm` uses Python2 to build its dependencies. |
| 14 | +It is only needed if your `npm` setup requires Python 2 to build dependencies. |
14 | 15 |
|
15 | 16 | ## Installation |
16 | 17 |
|
17 | | -For DDEV v1.23.5 or above run |
| 18 | +For DDEV v1.23.5 or above run: |
18 | 19 |
|
19 | | -```sh |
20 | | -ddev add-on get stasadev/ddev-python2 |
21 | | -``` |
22 | | - |
23 | | -For earlier versions of DDEV run |
24 | | - |
25 | | -```sh |
26 | | -ddev get stasadev/ddev-python2 |
| 20 | +```bash |
| 21 | +ddev add-on get ddev/ddev-python2 |
| 22 | +ddev restart |
27 | 23 | ``` |
28 | 24 |
|
29 | | -Then restart your project |
| 25 | +For earlier versions of DDEV run: |
30 | 26 |
|
31 | | -```sh |
| 27 | +```bash |
| 28 | +ddev get ddev/ddev-python2 |
32 | 29 | ddev restart |
33 | 30 | ``` |
34 | 31 |
|
35 | 32 | ## Usage |
36 | 33 |
|
37 | | -After installation, you can run Python2: |
| 34 | +After installation, you can run Python 2: |
38 | 35 |
|
39 | 36 | - `python2.7` (installed at `/usr/bin/python2.7`) |
40 | 37 | - `python` (symlink to `python2.7` installed at `/usr/local/bin/python`) |
41 | 38 |
|
42 | | -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. |
| 39 | +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. |
| 40 | + |
| 41 | +## Credits |
43 | 42 |
|
44 | 43 | **Contributed and maintained by [@stasadev](https://github.com/stasadev)** |
0 commit comments