microsoft / microsoft/aspire

.venv created even if there's no py file

Open
#12,856 0 comments 0 reactions 0 assignees View on GitHub
area-integrations python
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

The venv creation happens even if there's no python file (e.g it will fail)

```C#
#:package Aspire.Hosting.Python@13.1.0-*
#:package Aspire.Hosting.JavaScript@13.1.0-*
#:sdk Aspire.AppHost.Sdk@13.1.0-*

var builder = DistributedApplication.CreateBuilder(args);

builder.AddPythonApp("job1", ".", "app.py");

builder.Build().Run();
```

You don't need an app.py, but a venv will be created.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.