multiphenics / multiphenicsx

multiphenicsx - easy prototyping of multiphysics problems in FEniCSx
https://multiphenics.github.io/
GNU Lesser General Public License v3.0
40 stars 7 forks source link

Use `python3 -P` while running test and tutorials on CI #17

Closed francesco-ballarin closed 3 months ago

francesco-ballarin commented 10 months ago

https://github.com/python/cpython/pull/31542 has introduced a -P flag that does not add the current directory to sys.path by default, but the new flag is only available on python >= 3.11.

As soon as dolfinx/dolfinx:nightly moves to python >= 3.11 the new flag could be used as in https://github.com/multiphenics/multiphenicsx/commit/91429d043b3350d184dfe3971f0ad74350bde16b and the current workaround in https://github.com/multiphenics/multiphenicsx/commit/b424642c5475f41fdbefb10e65a77b4889eef271 will be removed.

francesco-ballarin commented 3 months ago

Didn't work out in https://github.com/multiphenics/multiphenicsx/actions/runs/9206752025/job/25325292435. Closing.