Skip to content

Commit 024e29f

Browse files
committed
eng: dotnet Arcade scaffolding + cpython 3.13.3 version refs
- Arcade infrastructure (eng/common/, global.json, NuGet.config, build.sh/cmd) - PythonHexVersion = 0x030D03F0, PythonMajorVersion = 3.13 - cgmanifest.json commitHash → ac3d5ea (v3.13.3) - eng/launchscript.sh shebang → [email protected] - PCbuild patches not applied: all superseded by upstream v3.13.3
1 parent 7d75d66 commit 024e29f

185 files changed

Lines changed: 14294 additions & 23 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.CodeQL.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
path_classifiers:
2+
library:
3+
# All folders in this repo except for the eng folder are library code that we do not run
4+
# static analysis over. We instead rely on CG and similar registration mechanisms to
5+
# report issues to us.
6+
- "**/*"
7+
- exclude: eng

‎.config/CredScanSuppressions.json‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"tool": "Credential Scanner",
3+
"suppressions": [
4+
{
5+
"file": [
6+
"Lib/test/allsans.pem",
7+
"Lib/test/badcert.pem",
8+
"Lib/test/idnsans.pem",
9+
"Lib/test/keycert.pem",
10+
"Lib/test/keycert2.pem",
11+
"Lib/test/keycert3.pem",
12+
"Lib/test/keycert4.pem",
13+
"Lib/test/keycertecc.pem",
14+
"Lib/test/nosan.pem",
15+
"Lib/test/pycakey.pem",
16+
"Lib/test/ssl_key.pem",
17+
"Lib/test/test_nntplib.py",
18+
"Lib/test/test_smtplib.py",
19+
"Lib/test/test_urllib2_localnet.py"
20+
],
21+
"_justification": "Test assets that contain no actual secrets"
22+
},
23+
{
24+
"file": [
25+
"Lib/urllib/request.py",
26+
"Lib/distutils/command/register.py"
27+
],
28+
"_justification": "Dummy credentials in doc comments"
29+
}
30+
]
31+
}

‎.config/PoliCheckExclusions.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<PoliCheckExclusions>
2+
<!-- https://eng.ms/docs/experiences-devices/customer-success-engineering/global/language-as-a-service/validationservices/policheck-for-microsoft/policheckclient/features/features#false-positive-management -->
3+
<!-- exclude upstream sources -->
4+
<Exclusion Type="FolderPathFull">Doc|Include|Lib|Misc|Modules|Objects|Python|Tools</Exclusion>
5+
</PoliCheckExclusions>

‎.config/tsaoptions.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"instanceUrl": "https://devdiv.visualstudio.com/",
3+
"template": "TFSDEVDIV",
4+
"projectName": "DEVDIV",
5+
"areaPath": "DevDiv\\NET Runtime\\WebAssembly",
6+
"iterationPath": "DevDiv",
7+
"notificationAliases": [ "[email protected]" ],
8+
"repositoryName": "dotnet-cpython",
9+
"codebaseName": "dotnet-cpython"
10+
}

‎.gitignore‎

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
*.cover
66
*.iml
77
*.o
8-
*.lto
98
*.a
109
*.so
1110
*.so.*
1211
*.dylib
13-
*.dSYM
1412
*.dll
1513
*.wasm
1614
*.orig
@@ -23,10 +21,6 @@
2321
*.gc??
2422
*.profclang?
2523
*.profraw
26-
# Copies of binaries before BOLT optimizations.
27-
*.prebolt
28-
# BOLT profile data.
29-
*.fdata
3024
*.dyn
3125
.gdb_history
3226
.purify
@@ -38,15 +32,14 @@ tags
3832
TAGS
3933
.vs/
4034
.vscode/
41-
.cache/
4235
gmon.out
4336
.coverage
4437
.mypy_cache/
4538
.pytest_cache/
46-
.ruff_cache/
4739
.DS_Store
4840

4941
*.exe
42+
!Lib/distutils/command/*.exe
5043

5144
# Ignore core dumps... but not Tools/msi/core/ or the like.
5245
core
@@ -63,24 +56,15 @@ Doc/.venv/
6356
Doc/env/
6457
Doc/.env/
6558
Include/pydtrace_probes.h
59+
Lib/distutils/command/*.pdb
60+
Lib/lib2to3/*.pickle
6661
Lib/site-packages/*
6762
!Lib/site-packages/README.txt
6863
Lib/test/data/*
6964
!Lib/test/data/README
7065
/_bootstrap_python
7166
/Makefile
7267
/Makefile.pre
73-
/iOSTestbed.*
74-
iOS/Frameworks/
75-
iOS/Resources/Info.plist
76-
iOS/testbed/build
77-
iOS/testbed/Python.xcframework/ios-*/bin
78-
iOS/testbed/Python.xcframework/ios-*/include
79-
iOS/testbed/Python.xcframework/ios-*/lib
80-
iOS/testbed/Python.xcframework/ios-*/Python.framework
81-
iOS/testbed/iOSTestbed.xcodeproj/project.xcworkspace
82-
iOS/testbed/iOSTestbed.xcodeproj/xcuserdata
83-
iOS/testbed/iOSTestbed.xcodeproj/xcshareddata
8468
Mac/Makefile
8569
Mac/PythonLauncher/Info.plist
8670
Mac/PythonLauncher/Makefile
@@ -137,12 +121,10 @@ Tools/unicode/data/
137121
/config.status.lineno
138122
# hendrikmuhs/ccache-action@v1
139123
/.ccache
140-
/cross-build/
141-
/jit_stencils.h
142124
/platform
143125
/profile-clean-stamp
144126
/profile-run-stamp
145-
/profile-bolt-stamp
127+
/Python/deepfreeze/*.c
146128
/pybuilddir.txt
147129
/pyconfig.h
148130
/python-config
@@ -160,7 +142,7 @@ Tools/ssl/win32
160142
Tools/freeze/test/outdir
161143

162144
# The frozen modules are always generated by the build so we don't
163-
# keep them in the repo. Also see Tools/build/freeze_modules.py.
145+
# keep them in the repo. Also see Tools/scripts/freeze_modules.py.
164146
Python/frozen_modules/*.h
165147
# The manifest can be generated at any time with "make regen-frozen".
166148
Python/frozen_modules/MANIFEST
@@ -170,3 +152,7 @@ Python/frozen_modules/MANIFEST
170152
/python
171153
!/Python/
172154

155+
# dotnet & our build system
156+
/artifacts
157+
/.dotnet
158+
/.packages

‎Directory.Build.props‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
4+
5+
<PropertyGroup Label="CalculateArch">
6+
<_hostArch>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant)</_hostArch>
7+
<BuildArchitecture Condition="'$(BuildArchitecture)' == ''">$(_hostArch)</BuildArchitecture>
8+
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_hostArch)' == 'arm'">arm</TargetArchitecture>
9+
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_hostArch)' == 'armv6'">armv6</TargetArchitecture>
10+
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_hostArch)' == 'armel'">armel</TargetArchitecture>
11+
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_hostArch)' == 'arm64'">arm64</TargetArchitecture>
12+
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_hostArch)' == 'loongarch64'">loongarch64</TargetArchitecture>
13+
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_hostArch)' == 's390x'">s390x</TargetArchitecture>
14+
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(_hostArch)' == 'ppc64le'">ppc64le</TargetArchitecture>
15+
<TargetArchitecture Condition="'$(TargetArchitecture)' == '' and '$(TargetsMobile)' == 'true'">x64</TargetArchitecture>
16+
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
17+
<Platform Condition="'$(Platform)' == '' and '$(InferPlatformFromTargetArchitecture)' == 'true'">$(TargetArchitecture)</Platform>
18+
</PropertyGroup>
19+
20+
<PropertyGroup>
21+
<BuildArch>$(__BuildArch)</BuildArch>
22+
<BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch>
23+
<BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch>
24+
25+
<BuildType>$(__BuildType)</BuildType>
26+
<BuildType Condition="'$(__BuildType)'==''">Debug</BuildType>
27+
<BuildType Condition="'$(__BuildType)' == 'debug'">Debug</BuildType>
28+
<BuildType Condition="'$(__BuildType)' == 'release'">Release</BuildType>
29+
30+
<BuildOS>$(__BuildOS)</BuildOS>
31+
<BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(Windows))' == 'true'">Windows_NT</BuildOS>
32+
<BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(Linux))' == 'true'">Linux</BuildOS>
33+
<BuildOS Condition="'$(__BuildOS)' == '' And '$([MSBuild]::IsOSPlatform(OSX))' == 'true'">OSX</BuildOS>
34+
35+
<!-- TODO: converge on one property for BuildOS and __BuildOS (and similar), and remove these extra lines. -->
36+
<__BuildOS>$(BuildOS)</__BuildOS>
37+
<__BuildArch>$(BuildArch)</__BuildArch>
38+
39+
<Configuration Condition="'$(Configuration)' == ''">$(BuildType)</Configuration>
40+
<Platform Condition="'$(Platform)' == ''">$(BuildArch)</Platform>
41+
42+
<PlatformConfigPathPart>$(BuildOS).$(TargetArchitecture).$(Configuration)</PlatformConfigPathPart>
43+
</PropertyGroup>
44+
45+
<!-- Common properties -->
46+
<PropertyGroup>
47+
48+
<__ProjectDir Condition="'$(__ProjectDir)'==''">$(MSBuildThisFileDirectory)</__ProjectDir>
49+
<ProjectDir>$(__ProjectDir)</ProjectDir>
50+
<RootRepoDir>$(ProjectDir)</RootRepoDir>
51+
<ProjectDir Condition="'$(__ProjectDir)'==''">$(MSBuildThisFileDirectory)</ProjectDir>
52+
53+
<BaseIntermediateOutputPath>$(RootRepoDir)artifacts\obj\$(PlatformConfigPathPart)\</BaseIntermediateOutputPath>
54+
55+
<SourceDir>$(__SourceDir)\</SourceDir>
56+
<SourceDir Condition="'$(__SourceDir)'==''">$(ProjectDir)src\</SourceDir>
57+
58+
<RootBinDir>$(__RootBinDir)\</RootBinDir>
59+
<RootBinDir Condition="'$(__RootBinDir)'==''">$(RootRepoDir)artifacts\</RootBinDir>
60+
61+
<BinDir>$(__BinDir)\</BinDir>
62+
<BinDir Condition="'$(__BinDir)'==''">$(RootBinDir)bin\$(PlatformConfigPathPart)\</BinDir>
63+
64+
<MonoLLVMDir>$(ProjectDir)artifacts\obj\$(PlatformConfigPathPart)\llvm</MonoLLVMDir>
65+
</PropertyGroup>
66+
67+
<PropertyGroup>
68+
<PythonBuildDir>$(BaseIntermediateOutputPath)cpython\</PythonBuildDir>
69+
<PythonInstallDir>$(BinDir)cpython\</PythonInstallDir>
70+
<ProvisionedOpenSSLDir>$(BaseIntermediateOutputPath)openssl-merged\</ProvisionedOpenSSLDir>
71+
<ProvisionedLibb2Dir>$(BaseIntermediateOutputPath)libb2-merged\</ProvisionedLibb2Dir>
72+
<HomebrewDir>$(BaseIntermediateOutputPath)\homebrew-git\</HomebrewDir>
73+
<OpenSSLX64Dir>$(BaseIntermediateOutputPath)\openssl-x64\</OpenSSLX64Dir>
74+
<OpenSSLARM64Dir>$(BaseIntermediateOutputPath)\openssl-arm64\</OpenSSLARM64Dir>
75+
<Libb2X64Dir>$(BaseIntermediateOutputPath)\libb2-x64\</Libb2X64Dir>
76+
<Libb2ARM64Dir>$(BaseIntermediateOutputPath)\libb2-arm64\</Libb2ARM64Dir>
77+
</PropertyGroup>
78+
</Project>

‎Directory.Build.targets‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
4+
</Project>

‎NuGet.config‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<solution>
4+
<add key="disableSourceControlIntegration" value="true" />
5+
</solution>
6+
<packageSources>
7+
<clear />
8+
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
9+
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
10+
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
11+
</packageSources>
12+
<disabledPackageSources>
13+
<clear />
14+
</disabledPackageSources>
15+
</configuration>

‎build.cmd‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
setlocal
3+
4+
set _args=%*
5+
if "%~1"=="-?" set _args=-help
6+
7+
powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %_args%
8+
exit /b %ERRORLEVEL%

‎build.sh‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
3+
source="${BASH_SOURCE[0]}"
4+
5+
function is_cygwin_or_mingw()
6+
{
7+
case $(uname -s) in
8+
CYGWIN*) return 0;;
9+
MINGW*) return 0;;
10+
*) return 1;;
11+
esac
12+
}
13+
14+
# resolve $SOURCE until the file is no longer a symlink
15+
while [[ -h $source ]]; do
16+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
17+
source="$(readlink "$source")"
18+
19+
# if $source was a relative symlink, we need to resolve it relative to the path where the
20+
# symlink file was located
21+
[[ $source != /* ]] && source="$scriptroot/$source"
22+
done
23+
24+
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
25+
26+
if is_cygwin_or_mingw; then
27+
# if bash shell running on Windows (not WSL),
28+
# pass control to powershell build script.
29+
scriptroot=$(cygpath -d "$scriptroot")
30+
powershell -c "$scriptroot\\build.cmd" $@
31+
else
32+
"$scriptroot/eng/build.sh" $@
33+
fi

0 commit comments

Comments
 (0)