Skip to content

Commit 89051e0

Browse files
committed
Including Python 3.11
Former-commit-id: e2b6db48d9062aa3db184ac53519c190f262e595 [formerly 3d23019ad6013a0406b363888808511c72ed292c] [formerly 5d20587237c445c27b7550916f8b28e6bfa65a20 [formerly 82538e29d5e96ed79c51064cf412c2c9b2021b18]] [formerly 5dc02797999a55f344994a1bbc079ac676b8ebee [formerly 87c74d4742a8f546fcb904467372b176d0fc99c9] [formerly 33cb69183039b85aaf3fa0c7682ada58bd751143 [formerly 2bb71bce6e53005cef3df23747923366a8a87fcb]]] Former-commit-id: bd6846de0ac02fa03b63bb95f44a99763ea66a39 [formerly 6400da6d1b44c33d8e082982b03597eb5e954e1c] [formerly 28355a17d0536e24632dbd8da47b730c3dae4dd9 [formerly 29873d4b8e07b36551a523565ea0f0de98889b7b]] Former-commit-id: 5770be26e44ba3e222e477f488f0c8a965ce05c5 [formerly ed874d72308807427e1befc73ce3de44f2566450] Former-commit-id: 9a88795e12468905e0e3d615f7d979a1e9c5530a Former-commit-id: 6644306
1 parent 4c0c9c9 commit 89051e0

9 files changed

Lines changed: 101 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python311 RCDATA "..\..\python\python3-android-3.11.2-arm.zip"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python311 RCDATA "..\..\python\python3-android-3.11.2-arm64.zip"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python311 RCDATA "..\..\python\python3-linux-3.11.2-x86_64.zip"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python311 RCDATA "..\..\python\python3-macos-3.11.2-universal2.zip"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python311 RCDATA "..\..\python\python3-macos-3.11.2-x86_64.zip"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python311 RCDATA "..\..\python\python3-windows-3.11.2-amd64.zip"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python311 RCDATA "..\..\python\python3-windows-3.11.2-win32.zip"
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
(**************************************************************************)
2+
(* *)
3+
(* Module: Unit 'PyEnvironment.Embeddable.Python311' *)
4+
(* *)
5+
(* Copyright (c) 2021 *)
6+
(* Lucas Moura Belo - lmbelo *)
7+
(* lucas.belo@live.com *)
8+
(* Brazil *)
9+
(* *)
10+
(* Project page: https://github.com/Embarcadero/PythonEnviroments *)
11+
(**************************************************************************)
12+
(* Functionality: PyEnvironment Embeddable as a Resource *)
13+
(* *)
14+
(* *)
15+
(**************************************************************************)
16+
(* This source code is distributed with no WARRANTY, for no reason or use.*)
17+
(* Everyone is allowed to use and change this code free for his own tasks *)
18+
(* and projects, as long as this header and its copyright text is intact. *)
19+
(* For changed versions of this code, which are public distributed the *)
20+
(* following additional conditions have to be fullfilled: *)
21+
(* 1) The header has to contain a comment on the change and the author of *)
22+
(* it. *)
23+
(* 2) A copy of the changed source has to be sent to the above E-Mail *)
24+
(* address or my then valid address, if this is possible to the *)
25+
(* author. *)
26+
(* The second condition has the target to maintain an up to date central *)
27+
(* version of the component. If this condition is not acceptable for *)
28+
(* confidential or legal reasons, everyone is free to derive a component *)
29+
(* or to generate a diff file to my or other original sources. *)
30+
(**************************************************************************)
31+
unit PyEnvironment.Embeddable.Res.Python311;
32+
33+
interface
34+
35+
uses
36+
System.Classes,
37+
PyEnvironment.Embeddable.Res;
38+
39+
type
40+
[ComponentPlatforms(pidAllPlatforms)]
41+
TPyEmbeddedResEnvironment311 = class(TPyCustomEmbeddedResEnvironment)
42+
protected
43+
procedure SetPythonVersion(const Value: string); override;
44+
end;
45+
46+
{$I python311.inc}
47+
48+
implementation
49+
50+
{ TPyEmbeddedResEnvironment311 }
51+
52+
procedure TPyEmbeddedResEnvironment311.SetPythonVersion(const Value: string);
53+
begin
54+
inherited SetPythonVersion('3.11');
55+
end;
56+
57+
end.

src/Embeddable/Res/python311.inc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{$IFDEF MSWINDOWS}
2+
{$IFDEF WIN32}
3+
{$R ..\..\..\resources\python3-windows-3.11-win32.res}
4+
{$ENDIF WIN32}
5+
{$IFDEF WIN64}
6+
{$R ..\..\..\resources\python3-windows-3.11-amd64.res}
7+
{$ENDIF WIN64}
8+
{$ENDIF MSWINDOWS}
9+
10+
{$IFDEF LINUX}
11+
{$IFDEF LINUX64}
12+
{$R ..\..\..\resources\python3-linux-3.11-x86_64.res}
13+
{$ENDIF LINUX64}
14+
{$ENDIF LINUX}
15+
16+
{$IFDEF MACOS}
17+
{$IFDEF MACOS64}
18+
{$IFDEF CPUARM}
19+
{$R ..\..\..\resources\python3-macos-3.11-universal2.res}
20+
{$ELSE}
21+
{$R ..\..\..\resources\python3-macos-3.11-x86_64.res}
22+
{$ENDIF CPUARM}
23+
{$ENDIF MACOS64}
24+
{$ENDIF MACOS}
25+
26+
{$IFDEF ANDROID}
27+
{$IFDEF CPUARM32}
28+
{$IFDEF ANDROID32}
29+
{$R ..\..\..\resources\python3-android-3.11-arm.res}
30+
{$ENDIF ANDROID32}
31+
{$ENDIF CPUARM32}
32+
{$IFDEF CPUARM64}
33+
{$IFDEF ANDROID64}
34+
{$R ..\..\..\resources\python3-android-3.11-arm64.res}
35+
{$ENDIF ANDROID64}
36+
{$ENDIF CPUARM64}
37+
{$ENDIF ANDROID}

0 commit comments

Comments
 (0)