Skip to content

Commit cade319

Browse files
authored
Python: setuptools[core] (BLAST-WarpX#5736)
The pip instructions for setuptools require now to specify the `[core]` argument, otherwise dependent packages are used from the system and are usually outdated, which causes errors. X-ref: - https://setuptools.pypa.io/en/latest/userguide/quickstart.html - pypa/setuptools#4483 (comment)
1 parent cd2644d commit cade319

28 files changed

+32
-32
lines changed

.azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
python3 -m pip install --upgrade pip
8181
python3 -m pip install --upgrade build
8282
python3 -m pip install --upgrade packaging
83-
python3 -m pip install --upgrade setuptools
83+
python3 -m pip install --upgrade setuptools[core]
8484
python3 -m pip install --upgrade wheel
8585
python3 -m pip install --upgrade virtualenv
8686
python3 -m pip install --upgrade pipx

.github/workflows/cuda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
cmake --build build_sp -j 4
8989
9090
python3 -m pip install --upgrade pip
91-
python3 -m pip install --upgrade build packaging setuptools wheel
91+
python3 -m pip install --upgrade build packaging setuptools[core] wheel
9292
export WARPX_MPI=ON
9393
export PYWARPX_LIB_DIR=$PWD/build_sp/lib/site-packages/pywarpx/
9494
python3 -m pip wheel .
@@ -191,7 +191,7 @@ jobs:
191191
#export CFLAGS="-noswitcherror"
192192
193193
#python3 -m pip install --upgrade pip
194-
#python3 -m pip install --upgrade build packaging setuptools wheel
194+
#python3 -m pip install --upgrade build packaging setuptools[core] wheel
195195
#export WARPX_MPI=ON
196196
#export PYWARPX_LIB_DIR=$PWD/build/lib/site-packages/pywarpx/
197197
#python3 -m pip wheel .

.github/workflows/intel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
export CC=$(which icc)
5151
5252
python3 -m pip install --upgrade pip
53-
python3 -m pip install --upgrade build packaging setuptools wheel
53+
python3 -m pip install --upgrade build packaging setuptools[core] wheel
5454
5555
cmake -S . -B build_dp \
5656
-DCMAKE_VERBOSE_MAKEFILE=ON \
@@ -118,7 +118,7 @@ jobs:
118118
export CC=$(which icx)
119119
120120
python3 -m pip install --upgrade pip
121-
python3 -m pip install --upgrade build packaging setuptools wheel
121+
python3 -m pip install --upgrade build packaging setuptools[core] wheel
122122
123123
cmake -S . -B build_sp \
124124
-DCMAKE_CXX_FLAGS_RELEASE="-O1 -DNDEBUG" \
@@ -201,6 +201,6 @@ jobs:
201201
202202
# Skip this as it will copy the binary artifacts and we are tight on disk space
203203
# python3 -m pip install --upgrade pip
204-
# python3 -m pip install --upgrade build packaging setuptools wheel
204+
# python3 -m pip install --upgrade build packaging setuptools[core] wheel
205205
# PYWARPX_LIB_DIR=$PWD/build_sp/lib/site-packages/pywarpx/ python3 -m pip wheel .
206206
# python3 -m pip install *.whl

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: install pip dependencies
4848
run: |
4949
python3 -m pip install --upgrade pip
50-
python3 -m pip install --upgrade build packaging setuptools wheel
50+
python3 -m pip install --upgrade build packaging setuptools[core] wheel
5151
python3 -m pip install --upgrade mpi4py
5252
python3 -m pip install --upgrade -r Regression/requirements.txt
5353
- name: CCache Cache

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ jobs:
211211
ccache -z
212212
213213
python3 -m pip install --upgrade pip
214-
python3 -m pip install --upgrade build packaging setuptools wheel
214+
python3 -m pip install --upgrade build packaging setuptools[core] wheel
215215
216216
export CXXFLAGS="-Werror -Wno-error=pass-failed"
217217

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
5353
python3 -m pip install --upgrade pip
5454
if(!$?) { Exit $LASTEXITCODE }
55-
python3 -m pip install --upgrade build packaging setuptools wheel
55+
python3 -m pip install --upgrade build packaging setuptools[core] wheel
5656
if(!$?) { Exit $LASTEXITCODE }
5757
cmake --build build --config Debug --target install
5858
if(!$?) { Exit $LASTEXITCODE }
@@ -113,7 +113,7 @@ jobs:
113113
114114
python3 -m pip install --upgrade pip
115115
if errorlevel 1 exit 1
116-
python3 -m pip install --upgrade build packaging setuptools wheel
116+
python3 -m pip install --upgrade build packaging setuptools[core] wheel
117117
if errorlevel 1 exit 1
118118
python3 -m pip install --upgrade -r requirements.txt
119119
if errorlevel 1 exit 1

Docs/source/install/cmake.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ PICMI Python Bindings
222222
.. code-block:: bash
223223
224224
python3 -m pip install -U pip
225-
python3 -m pip install -U build packaging setuptools wheel
225+
python3 -m pip install -U build packaging setuptools[core] wheel
226226
python3 -m pip install -U cmake
227227
python3 -m pip install -r requirements.txt
228228

Docs/source/install/hpc/lawrencium.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Optionally, download and install Python packages for :ref:`PICMI <usage-picmi>`
8383
python3 -m pip install --upgrade build
8484
python3 -m pip install --upgrade packaging
8585
python3 -m pip install --upgrade wheel
86-
python3 -m pip install --upgrade setuptools
86+
python3 -m pip install --upgrade setuptools[core]
8787
python3 -m pip install --upgrade cython
8888
python3 -m pip install --upgrade numpy
8989
python3 -m pip install --upgrade pandas

Docs/source/install/hpc/lxplus.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Now, ensure Python tooling is up-to-date:
148148
.. code-block:: bash
149149
150150
python3 -m pip install -U pip
151-
python3 -m pip install -U build packaging setuptools wheel
151+
python3 -m pip install -U build packaging setuptools[core] wheel
152152
python3 -m pip install -U cmake
153153
154154
Then we compile WarpX as in the previous section (with or without CUDA) adding ``-DWarpX_PYTHON=ON`` and then we install it into our Python:

Docs/source/install/users.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Given that you have the :ref:`WarpX dependencies <install-dependencies>` install
109109
.. code-block:: bash
110110
111111
python3 -m pip install -U pip
112-
python3 -m pip install -U build packaging setuptools wheel
112+
python3 -m pip install -U build packaging setuptools[core] wheel
113113
python3 -m pip install -U cmake
114114
115115
python3 -m pip wheel -v git+https://github.com/ECP-WarpX/WarpX.git

0 commit comments

Comments
 (0)