ansys / ansys/python-usd-viewer

Should the auto setup check for products ?

オープン
#6 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
0
フォーク
0
平均マージ
1日 16時間
マージ済み PR(30日)
7

説明

This is mainly an open question and would probably be better as a discussion than an issue. Should the auto setup script check for installation using products that are expected to contain C++ compiler support ?

For example, I used `winget` to install visual studio and the auto setup script is not working. With a tiny modification:
```python

# Products that include C++ compiler support
vs_products = [
"Microsoft.VisualStudio.Product.BuildTools",
"Microsoft.VisualStudio.Product.Community",
"Microsoft.VisualStudio.Product.Professional",
"Microsoft.VisualStudio.Product.Enterprise",
]

vs_found = False
for vswhere_path in vswhere_paths:
if Path(vswhere_path).exists():
try:
# Search for any product that includes C++ build tools
result = subprocess.run(
[vswhere_path, "-latest", "-products"] + vs_products + ["-property", "installationPath"],
capture_output=True,
text=True,
check=True,
)
vs_path = result.stdout.strip()
if vs_path:
vs_found = True
break
except subprocess.CalledProcessError:
continue
```
The script no longer fails. I'm not sure that the `winget` installation is enough thugh. I'll follow the error message advices to install visual studio.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず自動セットアップスクリプトと既存の vswhere 検出処理を見つけ、Visual Studio のインストールと C++ コンパイラのサポートが現在どのようにチェックされているかを確認します。winget でインストールした Visual Studio インスタンスで動作をテストします。期待されるインストールが確実に検出されるか、問題が具体的な要件として明確化されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。