CircleCI-Public / CircleCI-Public/cimg-python

Bug Report: pyenv shell integrations not enabled

Open
#220 1 comment 2 reactions 0 assignees View on GitHub
bug
Dominant language
Dockerfile
Stars
36
Forks
33
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

While pyenv is used to build these images, the [shell integrations](https://github.com/pyenv/pyenv#set-up-your-shell-environment-for-pyenv) are missing.

What this means is that if you install a package that provides a console script, such as pytest, the console script will not be available in your Circle CI jobs.

**To Reproduce**

A job with the following steps will do it:

```yaml
- run:
name: "Install PyTest"
command: "python -m pip install pytest"
- run:
name: "Run PyTest"
command: "pytest --help"
```

**Expected behavior**

I'd expect the `pytest` help message to be printed.

**Workarounds**

I'm going to try `python -m pytest` instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.