Skip to content

Commit

Permalink
Pin setuptools to a version < 50.0 when installing pipenv
Browse files Browse the repository at this point in the history
Experiencing a problem where `pip install pipenv` yields:

```
SystemError: Parent module 'setuptools' not loaded, cannot perform
relative import
```

Fix inspired by:

pypa/setuptools#2352
  • Loading branch information
chigby committed Aug 31, 2020
1 parent 4f2a011 commit 8af5149
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ reuse-blerbs:
# Set python to 3.5.2
pyenv global 3.5.2
pip install -U pip
pip install setuptools==49.6.0
pip install pipenv
pipenv install
SETUPTOOLS_USE_DISTUTILS=stdlib pipenv install
version: 2
jobs:
safety_check:
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib
machine:
image: ubuntu-1604:201903-01
working_directory: ~/tracker
Expand All @@ -34,6 +37,8 @@ jobs:
command: make flake8

npm_audit:
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib
machine:
image: ubuntu-1604:201903-01
working_directory: ~/tracker
Expand All @@ -51,6 +56,8 @@ jobs:
path: ~/tracker/test-results/

dev:
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib
machine:
image: ubuntu-1604:201903-01
working_directory: ~/tracker
Expand Down Expand Up @@ -84,6 +91,8 @@ jobs:
path: ~/dockercomposelogs

prod:
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib
machine:
image: ubuntu-1604:201903-01
working_directory: ~/pressfreedom
Expand Down

0 comments on commit 8af5149

Please sign in to comment.