ansys / ansys/python-usd-viewer
Should the auto setup check for products ?
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Merge medio
- 1g 16h
- PR unite (30g)
- 7
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando lo script di configurazione automatica e il rilevamento esistente tramite vswhere, quindi esamina come vengono attualmente verificate le installazioni di Visual Studio e il supporto per i compilatori C++. Testa il comportamento con un'istanza di Visual Studio installata tramite winget. Il lavoro è completato quando l'installazione prevista viene rilevata in modo affidabile oppure il problema viene chiarito in un requisito concreto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- build-system
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100