-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathPythonConstants.cs
More file actions
39 lines (36 loc) · 1.8 KB
/
PythonConstants.cs
File metadata and controls
39 lines (36 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// --------------------------------------------------------------------------------------------
using System.Collections.Generic;
namespace Microsoft.Oryx.BuildScriptGenerator.Python
{
public static class PythonConstants
{
public const string PlatformName = "python";
public const string RequirementsFileName = "requirements.txt";
public const string RuntimeFileName = "runtime.txt";
public const string PythonFileNamePattern = "*.py";
public const string PythonVersionEnvVarName = "PYTHON_VERSION";
public const string PythonLtsVersion = Common.PythonVersions.Python38Version;
public const string InstalledPythonVersionsDir = "/opt/python/";
public const string ZipFileExtension = "tar.gz";
public const string ZipVirtualEnvFileNameFormat = "{0}.zip";
public const string TarGzVirtualEnvFileNameFormat = "{0}.tar.gz";
public const string DefaultTargetPackageDirectory = "__oryx_packages__";
public const string SetupDotPyFileName = "setup.py";
public const string CondaExecutablePath = "/opt/conda/condabin/conda";
/// <summary>
/// Default Python major.minor version per OS flavor, matching platforms/python/versions/*/defaultVersion.txt.
/// </summary>
public static readonly Dictionary<string, string> DefaultVersionPerFlavor = new Dictionary<string, string>
{
{ "bookworm", "3.13" },
{ "bullseye", "3.10" },
{ "buster", "3.8" },
{ "focal-scm", "3.8" },
{ "noble", "3.14" },
{ "stretch", "3.8" },
};
}
}