diff --git a/doc/changelog.d/6748.fixed.md b/doc/changelog.d/6748.fixed.md new file mode 100644 index 00000000000..ffed61ffa94 --- /dev/null +++ b/doc/changelog.d/6748.fixed.md @@ -0,0 +1 @@ +F-string usage for IronPython compatibility diff --git a/doc/source/Resources/pyaedt_installer_from_aedt.py b/doc/source/Resources/pyaedt_installer_from_aedt.py index 462b7b36153..da6a39a367d 100644 --- a/doc/source/Resources/pyaedt_installer_from_aedt.py +++ b/doc/source/Resources/pyaedt_installer_from_aedt.py @@ -360,7 +360,6 @@ def install_pyaedt(): subprocess.run(command, check=True, env=env) # nosec else: # Try to install uv and use it, fallback to pip if it fails - uv_available = True try: print("Installing uv in the virtual environment...") subprocess.run([str(pip_exe), "--default-timeout=1000", "install", "uv"], check=True, env=env) # nosec @@ -375,9 +374,8 @@ def install_pyaedt(): else: subprocess.run([str(uv_exe), "pip", "install", "pyaedt[all]"], check=True, env=env) # nosec except subprocess.CalledProcessError as e: - print(f"uv installation failed with error: {e}") + print("uv installation failed with error: {}".format(e)) print("Falling back to pip for package installation...") - uv_available = False subprocess.run([str(pip_exe), "--default-timeout=1000", "install", "--upgrade", "pip"], check=True, env=env) # nosec subprocess.run([str(pip_exe), "--default-timeout=1000", "install", "wheel"], check=True, env=env) # nosec if args.version <= "231": @@ -442,7 +440,7 @@ def install_pyaedt(): else: subprocess.run([str(uv_exe), "pip", "install", "pyaedt[all]"], check=True, env=env) # nosec except subprocess.CalledProcessError as e: - print(f"uv installation failed with error: {e}") + print("uv installation failed with error: {}".format(e)) print("Falling back to pip for package installation...") subprocess.run([str(pip_exe), "--default-timeout=1000", "uninstall", "pyaedt", "-y"], check=True, env=env) # nosec if args.version <= "231":