Skip to content

Commit

Permalink
fix: python version detect (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaEti authored Nov 27, 2024
1 parent 3dc4b9a commit bb0701c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,12 +570,12 @@ Additionally, you can also retry the build with the debug flag:

async __detectPlatformVersion(config: any, body: any) {
if (body.platformConfig.pythonVersion) {
// django, flask, python
// django, flask
this.logKeyValue('Python version', body.platformConfig.pythonVersion);
return body;
}
if (body.platformConfig.version) {
// node, dotnet, php
// node, dotnet, php, python
this.logKeyValue(
`${config.platform} version`,
body.platformConfig.version,
Expand All @@ -594,7 +594,6 @@ Additionally, you can also retry the build with the debug flag:
switch (config.platform) {
case 'django':
case 'flask':
case 'python':
platformVersion = await getPlatformVersion(
config.platform,
config.path,
Expand All @@ -621,6 +620,7 @@ Additionally, you can also retry the build with the debug flag:
}
}
break;
case 'python':
case 'node':
case 'dotnet':
platformVersion = await getPlatformVersion(
Expand Down

0 comments on commit bb0701c

Please sign in to comment.