Skip to content

Commit a65811b

Browse files
committed
Remove EXTERNALLY-MANAGED and add pipx
1 parent 74aa434 commit a65811b

2 files changed

Lines changed: 22 additions & 25 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ RUN ln -s /usr/bin/python3 /usr/bin/python; \
3434
ln -s /usr/bin/python3-config /usr/bin/python-config;
3535

3636
RUN mkdir "$PIP_CACHE_DIR" && chmod a+rwx "$PIP_CACHE_DIR" \
37-
&& apk add python3 && python3 -m ensurepip --upgrade \
38-
&& pip install -U pip setuptools wheel \
37+
&& apk add python3 && rm -rf /usr/lib/python*/EXTERNALLY-MANAGED \
38+
&& python3 -m ensurepip --upgrade \
39+
&& pip install -U pip setuptools wheel pipx \
3940
&& clean
4041

4142
RUN pip install micropipenv[toml] && clean

README.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,32 @@ programming language.
99
Configuration by environment variables
1010
--------------------------------------
1111

12-
- `VENV_PATH` - Path to a virtual environment that will be activated after the
13-
start.
14-
- `PIP_CACHE_DIR` (default `/pip-cache`) - Path to directory with pip cache.
15-
- `PIP_NO_COMPILE` (default 1)
16-
- `PIPENV_VENV_IN_PROJECT` (default 1)
12+
- `VENV_PATH` - Path to a virtual environment that will be activated after the
13+
start.
14+
- `PIP_CACHE_DIR` (default `/pip-cache`) - Path to directory with pip cache.
15+
- `PIP_NO_COMPILE` (default 1)
16+
- `PIPENV_VENV_IN_PROJECT` (default 1)
1717

1818
Utilities
1919
---------
2020

21-
- `pyclean` - Remove all `.pyc`, `.pyo` and `__pycache__` files from directory
22-
(default `/`).
23-
- [micropipenv](https://pypi.org/project/micropipenv/) - A lightweight wrapper
24-
for pip to support requirements.txt, Pipenv and Poetry lock files or
25-
converting them to pip-tools compatible output.
21+
- `pyclean` - Remove all `.pyc`, `.pyo` and `__pycache__` files from directory
22+
(default `/`).
23+
- [pipx](https://pipx.pypa.io) - Install and Run Python Applications in Isolated
24+
Environments.
25+
- [micropipenv](https://pypi.org/project/micropipenv/) - A lightweight wrapper
26+
for pip to support requirements.txt, Pipenv and Poetry lock files or
27+
converting them to pip-tools compatible output.
2628

2729
Packaging
2830
---------
2931

30-
- [twine](https://github.com/pypa/twine) - Utilities for interacting with PyPI
31-
- [pipenv](https://pipenv.pypa.io) - Python Dev Workflow for Humans
32-
- [poetry](https://python-poetry.org/) - Python packaging and dependency
33-
management made easy
34-
- [flit](https://flit.readthedocs.io)- Simple way to put Python packages and
35-
modules on PyPI
32+
- [twine](https://github.com/pypa/twine) - Utilities for interacting with PyPI
33+
- [pipenv](https://pipenv.pypa.io) - Python Dev Workflow for Humans
34+
- [poetry](https://python-poetry.org/) - Python packaging and dependency
35+
management made easy
36+
- [flit](https://flit.readthedocs.io)- Simple way to put Python packages and
37+
modules on PyPI
3638

3739
uWSGI
3840
-----
@@ -62,14 +64,8 @@ Tags
6264
| 3.9-packaging | ![](https://img.shields.io/docker/image-size/minidocks/python/3.9-packaging?style=flat-square&logo=docker&label=size) |
6365
| 3.9-build | ![](https://img.shields.io/docker/image-size/minidocks/python/3.9-build?style=flat-square&logo=docker&label=size) |
6466
| 3.9-uwsgi | ![](https://img.shields.io/docker/image-size/minidocks/python/3.9-uwsgi?style=flat-square&logo=docker&label=size) |
65-
| 2 | ![](https://img.shields.io/docker/image-size/minidocks/python/2?style=flat-square&logo=docker&label=size) |
66-
| 2-packaging | ![](https://img.shields.io/docker/image-size/minidocks/python/2-packaging?style=flat-square&logo=docker&label=size) |
67-
| 2-build | ![](https://img.shields.io/docker/image-size/minidocks/python/2-build?style=flat-square&logo=docker&label=size) |
68-
| 2.7 | ![](https://img.shields.io/docker/image-size/minidocks/python/2.7?style=flat-square&logo=docker&label=size) |
69-
| 2.7-packaging | ![](https://img.shields.io/docker/image-size/minidocks/python/2.7-packaging?style=flat-square&logo=docker&label=size) |
70-
| 2.7-build | ![](https://img.shields.io/docker/image-size/minidocks/python/2.7-build?style=flat-square&logo=docker&label=size) |
7167

7268
Related images
7369
--------------
7470

75-
- [PyInstaller](https://github.com/minidocks/pyinstaller)
71+
- [PyInstaller](https://github.com/minidocks/pyinstaller)

0 commit comments

Comments
 (0)