summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-06-17 10:42:28 +0200
committerGitHub <noreply@github.com>2022-06-17 10:42:28 +0200
commit667c39987cbe95a4bdac9d3ef887d7e8da625569 (patch)
tree6b7fe1b59a2cfdcc890e7d817ab93f3a9d6934c2 /.github
parentf35d8c41028fe9ab72a7767340f816dc108c5f52 (diff)
downloadspack-667c39987cbe95a4bdac9d3ef887d7e8da625569.tar.gz
spack-667c39987cbe95a4bdac9d3ef887d7e8da625569.tar.bz2
spack-667c39987cbe95a4bdac9d3ef887d7e8da625569.tar.xz
spack-667c39987cbe95a4bdac9d3ef887d7e8da625569.zip
py-setuptools: install setuptools from wheels directly (#31131)
When installing setuptools from sources in Spack, we might get into weird failures due to the way we use pip. In particular, for Spack it's necessary to install in a non-isolated pip environment to allow using PYTHONPATH as a selection method for all the build requirements of a Python package. This can fail when installing setuptools since there might be a setuptools version already installed for the Python interpreter being used, with different entry points than the one we want to install. Installing from wheels both pip and setuptools should harden our installation procedure in the context of: - Bootstrapping Python dependencies of Spack - Using external Python packages
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/unit_tests.yaml2
-rw-r--r--.github/workflows/windows_python.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml
index 781381c35d..301c50d202 100644
--- a/.github/workflows/unit_tests.yaml
+++ b/.github/workflows/unit_tests.yaml
@@ -44,7 +44,7 @@ jobs:
python-version: '3.10'
- name: Install Python packages
run: |
- pip install --upgrade pip six setuptools==62.3.4 types-six
+ pip install --upgrade pip six setuptools types-six
- name: Setup git configuration
run: |
# Need this for the git tests to succeed.
diff --git a/.github/workflows/windows_python.yml b/.github/workflows/windows_python.yml
index 801c0acdf1..4336c9f0c2 100644
--- a/.github/workflows/windows_python.yml
+++ b/.github/workflows/windows_python.yml
@@ -46,7 +46,7 @@ jobs:
python-version: 3.9
- name: Install Python packages
run: |
- python -m pip install --upgrade pip six setuptools==62.3.4 flake8 isort>=4.3.5 mypy>=0.800 black pywin32 types-python-dateutil
+ python -m pip install --upgrade pip six setuptools flake8 isort>=4.3.5 mypy>=0.800 black pywin32 types-python-dateutil
- name: Create local develop
run: |
.\spack\.github\workflows\setup_git.ps1