Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6ad6e46

Browse filesBrowse files
Try installing pip packages into a venv
1 parent f0d4de4 commit 6ad6e46
Copy full SHA for 6ad6e46

File tree

1 file changed

+13
-7
lines changed
Filter options

1 file changed

+13
-7
lines changed

‎.circleci/config.yml

Copy file name to clipboardExpand all lines: .circleci/config.yml
+13-7Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ commands:
9090
- run:
9191
name: Upgrade pip, setuptools, wheel
9292
command: |
93-
python -m pip install --upgrade --user pip
94-
python -m pip install --upgrade --user wheel
95-
python -m pip install --upgrade --user 'setuptools!=60.6.0'
93+
python -m venv venv
94+
source venv/bin/activate
95+
python -m pip install --upgrade pip
96+
python -m pip install --upgrade wheel
97+
python -m pip install --upgrade 'setuptools!=60.6.0'
9698
9799
mamba-install:
98100
description: Install micromamba so it can be used for building the emscripten-forge environment
@@ -113,25 +115,29 @@ commands:
113115
- run:
114116
name: Install Python dependencies
115117
command: |
116-
python -m pip install --user -r requirements/dev/build-requirements.txt
117-
python -m pip install --user \
118+
source venv/bin/activate
119+
120+
python -m pip install -r requirements/dev/build-requirements.txt
121+
python -m pip install \
118122
numpy<< parameters.numpy_version >> \
119123
-r requirements/doc/doc-requirements.txt
120-
python -m pip install --no-deps --user \
124+
python -m pip install --no-deps \
121125
git+https://github.com/matplotlib/mpl-sphinx-theme.git
122126
123127
mpl-install:
124128
steps:
125129
- run:
126130
name: Install Matplotlib
127131
command: |
132+
source venv/bin/activate
133+
128134
if [[ "$CIRCLE_BRANCH" == v*-doc ]]; then
129135
# The v*-doc branches must build against the specified release.
130136
version=${CIRCLE_BRANCH%-doc}
131137
version=${version#v}
132138
python -m pip install matplotlib==${version}
133139
else
134-
python -m pip install --user --verbose \
140+
python -m pip install --verbose \
135141
--no-build-isolation --editable .[dev]
136142
fi
137143
- save_cache:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.