@corva/create-app 0.60.0-2 → 0.60.0-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -109,7 +109,18 @@ export const resolveAppRuntime = (opts) => {
|
|
|
109
109
|
|
|
110
110
|
return {
|
|
111
111
|
language: 'python',
|
|
112
|
-
isRuntimeAvailable: () =>
|
|
112
|
+
isRuntimeAvailable: async () => {
|
|
113
|
+
if (!IS_WINDOWS) {
|
|
114
|
+
return checkCliVersion(`python${version}`, version);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return (
|
|
118
|
+
(await checkCliVersion(`py -${version}`, version)) ||
|
|
119
|
+
(await checkCliVersion('python', version)) ||
|
|
120
|
+
(await checkCliVersion('python3', version))
|
|
121
|
+
);
|
|
122
|
+
},
|
|
123
|
+
|
|
113
124
|
packageManager: 'pip',
|
|
114
125
|
version,
|
|
115
126
|
semver: semverVersionsMapping.python[version],
|