Skip to content

Commit 2e3ebc8

Browse files
committed
Merge branch 'main' into release/0.4
2 parents 7ad6382 + 277f611 commit 2e3ebc8

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ tests = [
4343
"pytest==8.3.5",
4444
"pytest-cov==6.1.1",
4545
"pytest-qt==4.4.0",
46-
"setuptools==80.7.1",
46+
"setuptools==80.9.0",
4747
]
4848
doc = [
4949
"Sphinx==8.1.3",
50-
"ansys-sphinx-theme==1.4.4",
50+
"ansys-sphinx-theme==1.5.0",
5151
"sphinx-copybutton==0.5.2",
5252
"sphinx_design==0.6.1",
5353
"sphinx_toolbox==4.0.0",

src/ansys/tools/installer/windows_functions.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,16 @@ def create_venv_windows(venv_dir: str, py_path: str):
6060
# Create venv using uv
6161
LOG.debug("Creating virtual environment using uv...")
6262
subprocess.call(
63-
f'start /w /min cmd /K ""{py_path}\\python.exe" -m uv venv {venv_dir} && exit"',
63+
f'start /w /min cmd /K ""{py_path}\\python.exe" -m uv venv --seed {venv_dir} && exit"',
64+
shell=True,
65+
cwd=user_profile,
66+
)
67+
68+
# Check & Update default venv packages
69+
LOG.debug("Updating virtual environment packages...")
70+
venv_python = os.path.join(venv_dir, "Scripts", "python.exe")
71+
subprocess.call(
72+
f'start /w /min cmd /K "{venv_python} -m pip install --upgrade pip uv && exit"',
6473
shell=True,
6574
cwd=user_profile,
6675
)

0 commit comments

Comments
 (0)