Skip to content

Commit a124070

Browse files
committed
Again incompatibility Cython 3.1 and gcc<=12 (for pip)
1 parent 2949099 commit a124070

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

noxfile.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ def _get_modified_env(session):
128128
def test_with_fft_and_pythran(session):
129129
print_times = TimePrinter()
130130

131+
env_modif = _get_modified_env(session)
132+
131133
command = "pdm sync --clean -G dev -G test -G fft -G mpi --no-self"
132-
session.run_install(
133-
*command.split(), external=True, env=_get_modified_env(session)
134-
)
134+
session.run_install(*command.split(), external=True, env=env_modif)
135135

136136
print_times("pdm sync")
137137

@@ -142,11 +142,19 @@ def test_with_fft_and_pythran(session):
142142

143143
print_times("installing fluidsim")
144144

145+
# ugly workaround to force pip to build mpi4py with the modified env
146+
# see https://github.com/mpi4py/mpi4py/issues/652#issuecomment-2936030256
147+
session.run_install(
148+
"pip", "install", "mpi4py", "-v", "--force-reinstall", env=env_modif
149+
)
150+
145151
short_names = ["fftw", "mpi_with_fftw", "fftwmpi"]
146152
if "GITLAB_CI" in os.environ:
147153
short_names.extend(["pfft", "p3dfft"])
148154
for short_name in short_names:
149-
session.install(f"fluidfft-{short_name}")
155+
session.run_install(
156+
"pip", "install", f"fluidfft-{short_name}", "-v", env=env_modif
157+
)
150158

151159
_test(session)
152160

0 commit comments

Comments
 (0)