mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Remove helper scripts for the old signed build pipeline.
This commit is contained in:
parent
ef8e81bae0
commit
ac360f4857
6 changed files with 0 additions and 194 deletions
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
SOURCE_ROOT=$1
|
||||
DEST=$2
|
||||
PYABI=$3
|
||||
|
||||
# Compile
|
||||
for PYBIN in /opt/python/${PYABI}*/bin; do
|
||||
"${PYBIN}/pip" install -U cython
|
||||
"${PYBIN}/python" "${SOURCE_ROOT}/setup.py" build bdist_wheel -d "${DEST}" --abi
|
||||
done
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
Building manylinux1 wheels
|
||||
|
||||
1. Clone debugpy to a base directory (say `C:\git`), giving debugpy repository at `C:\git\debugpy`.
|
||||
2. Create dir `dist` under `C:\debugpy\dist`.
|
||||
3. Run the following command:
|
||||
* x86_64: `docker run --rm -v C:\git:/io -w /io quay.io/pypa/manylinux1_x86_64:latest /io/debugpy/linux/build_plat.sh /io/debugpy /io/dist cp37-cp37m`
|
||||
* i686: `docker run --rm -v C:\git:/io -w /io quay.io/pypa/manylinux1_i686:latest /io/debugpy/linux/build_plat.sh /io/debugpy/io/dist cp37-cp37m`
|
||||
4. After the run the built wheel should be in `C:\git\dist`.
|
||||
|
||||
Other python ABI options:
|
||||
* cp27-cp27m
|
||||
* cp27-cp27mu
|
||||
* cp35-cp35m
|
||||
* cp36-cp36m
|
||||
* cp37-cp37m
|
||||
* cp38-cp38m
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
param($packages, [switch]$pack, [string]$wheeltype)
|
||||
|
||||
$root = $script:MyInvocation.MyCommand.Path | Split-Path -parent;
|
||||
if ($env:BUILD_BINARIESDIRECTORY) {
|
||||
$bin = mkdir -Force $env:BUILD_BINARIESDIRECTORY\bin
|
||||
$obj = mkdir -Force $env:BUILD_BINARIESDIRECTORY\obj
|
||||
$dist = mkdir -Force $env:BUILD_BINARIESDIRECTORY\dist
|
||||
} else {
|
||||
$bin = mkdir -Force $root\bin
|
||||
$obj = mkdir -Force $root\obj
|
||||
$dist = mkdir -Force $root\dist
|
||||
}
|
||||
|
||||
$env:SKIP_CYTHON_BUILD = "1"
|
||||
|
||||
Get-ChildItem $dist\*.whl, $dist\*.zip | Remove-Item -Force
|
||||
|
||||
(Get-ChildItem $packages\python* -Directory -Filter '*python.3.8*') | ForEach-Object{ Get-Item $_\tools\python.exe } | Where-Object{ Test-Path $_ } | Select-Object -last 1 | ForEach-Object{
|
||||
Write-Host "Building with $_"
|
||||
& $_ -m pip install -U pip
|
||||
& $_ -m pip install -U pyfindvs setuptools wheel cython
|
||||
|
||||
if ($wheeltype -eq 'sdist') {
|
||||
Write-Host "Building sdist with $_"
|
||||
& $_ setup.py sdist -d "$dist" --formats zip
|
||||
}
|
||||
|
||||
if ($wheeltype -eq 'pure') {
|
||||
Write-Host "Building wheel with $_ pure python wheel"
|
||||
& $_ setup.py bdist_wheel -d "$dist" --pure
|
||||
}
|
||||
|
||||
if ($wheeltype -eq 'universal') {
|
||||
Write-Host "Building wheel with $_ universal wheel"
|
||||
& $_ setup.py bdist_wheel -d "$dist" --universal
|
||||
}
|
||||
|
||||
Get-ChildItem $dist\debugpy-*.whl, $dist\*.zip | ForEach-Object{
|
||||
Write-Host "Built wheel found at $_"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
param($packages, [switch]$pack, [string]$platform, [string]$pyver)
|
||||
|
||||
$root = $script:MyInvocation.MyCommand.Path | Split-Path -parent;
|
||||
if ($env:BUILD_BINARIESDIRECTORY) {
|
||||
$bin = mkdir -Force $env:BUILD_BINARIESDIRECTORY\bin
|
||||
$obj = mkdir -Force $env:BUILD_BINARIESDIRECTORY\obj
|
||||
$dist = mkdir -Force $env:BUILD_BINARIESDIRECTORY\dist
|
||||
} else {
|
||||
$bin = mkdir -Force $root\bin
|
||||
$obj = mkdir -Force $root\obj
|
||||
$dist = mkdir -Force $root\dist
|
||||
}
|
||||
|
||||
$env:SKIP_CYTHON_BUILD = "1"
|
||||
|
||||
$filter = "*python.$pyver*"
|
||||
if ($platform -eq 'win32'){
|
||||
$filter = "*pythonx86.$pyver*"
|
||||
}
|
||||
Write-Host "Filter: $filter"
|
||||
|
||||
if (-not $pack) {
|
||||
(Get-ChildItem $packages\python* -Directory -Filter $filter) | ForEach-Object{ Get-Item $_\tools\python.exe } | Where-Object{ Test-Path $_ } | Select-Object -last 1 | ForEach-Object{
|
||||
Write-Host "Building with $_"
|
||||
& $_ -m pip install -U pip
|
||||
& $_ -m pip install -U pyfindvs setuptools wheel cython
|
||||
|
||||
Push-Location "$root\..\..\src\debugpy\_vendored\pydevd"
|
||||
& $_ setup_cython.py enable_msbuildcompiler build_ext -b "$bin" -t "$obj"
|
||||
Pop-Location
|
||||
}
|
||||
} else {
|
||||
Get-ChildItem $dist\*.whl, $dist\*.zip | Remove-Item -Force
|
||||
|
||||
(Get-ChildItem $packages\python* -Directory -Filter $filter) | ForEach-Object{ Get-Item $_\tools\python.exe } | Where-Object{ Test-Path $_ } | Select-Object -last 1 | ForEach-Object{
|
||||
Write-Host "Building wheel with $_ for platform."
|
||||
& $_ setup.py build -b "$bin" -t "$obj" bdist_wheel -d "$dist" -p "$platform"
|
||||
Get-ChildItem $dist\debugpy-*.whl | ForEach-Object{
|
||||
Write-Host "Built wheel found at $_"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microbuild.Core" version="0.3.0" />
|
||||
<package id="Python" version="3.9.5" />
|
||||
<package id="Pythonx86" version="3.9.5" />
|
||||
<package id="Python" version="3.8.10" />
|
||||
<package id="Pythonx86" version="3.8.10" />
|
||||
<package id="Python" version="3.7.9" />
|
||||
<package id="Pythonx86" version="3.7.9" />
|
||||
<package id="Python" version="3.6.8" />
|
||||
<package id="Pythonx86" version="3.6.8" />
|
||||
<package id="Python" version="3.5.4" />
|
||||
<package id="Pythonx86" version="3.5.4" />
|
||||
<!--<package id="Python2" version="2.7.15" />
|
||||
<package id="Python2x86" version="2.7.15" />-->
|
||||
</packages>
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<RootPath>$(MSBuildThisFileDirectory)\..\..\src\debugpy\</RootPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="$(BUILD_BINARIESDIRECTORY) != ''">
|
||||
<IntDir>$(BUILD_BinariesDirectory)\obj\sign\</IntDir>
|
||||
<OutDir>$(BUILD_BinariesDirectory)\bin\sign\</OutDir>
|
||||
<RootDir>$(BUILD_BinariesDirectory)\bin\</RootDir>
|
||||
<PackagesDir>$(BUILD_BinariesDirectory)\packages</PackagesDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<IntDir Condition="$(IntDir) == ''">$(MSBuildThisFileDirectory)\obj\sign\</IntDir>
|
||||
<OutDir Condition="$(OutDir) == ''">$(MSBuildThisFileDirectory)\bin\sign\</OutDir>
|
||||
<RootDir Condition="$(RootDir) == ''">$(MSBuildThisFileDirectory)\bin\</RootDir>
|
||||
<PackagesDir Condition="$(PackagesDir) == ''">$(MSBuildThisFileDirectory)</PackagesDir>
|
||||
|
||||
<IntermediateOutputPath>$(IntDir)</IntermediateOutputPath>
|
||||
<OutputPath>$(OutDir)</OutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(PackagesDir)\Microbuild.Core.0.3.0\build\MicroBuild.Core.props" />
|
||||
|
||||
<ItemGroup>
|
||||
<SourceFiles Include="$(RootDir)_pydevd_bundle\*.pyd">
|
||||
<TargetPath>$(RootPath)_vendored\pydevd\_pydevd_bundle\%(Filename)%(Extension)</TargetPath>
|
||||
</SourceFiles>
|
||||
<SourceFiles Include="$(RootDir)_pydevd_frame_eval\*.pyd">
|
||||
<TargetPath>$(RootPath)_vendored\pydevd\_pydevd_frame_eval\%(Filename)%(Extension)</TargetPath>
|
||||
</SourceFiles>
|
||||
<SourceFiles Include="$(RootPath)_vendored\pydevd\pydevd_attach_to_process\*.dll">
|
||||
<TargetPath>%(FullPath)</TargetPath>
|
||||
</SourceFiles>
|
||||
<SourceFiles Include="$(RootPath)_vendored\pydevd\pydevd_attach_to_process\*.exe">
|
||||
<TargetPath>%(FullPath)</TargetPath>
|
||||
</SourceFiles>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="Build">
|
||||
<MakeDir Directories="$(IntDir);$(OutDir)" />
|
||||
<Copy SourceFiles="@(SourceFiles)" DestinationFolder="$(OutDir)">
|
||||
<Output TaskParameter="CopiedFiles" ItemName="FilesToSign" />
|
||||
</Copy>
|
||||
<ItemGroup>
|
||||
<FilesToSign>
|
||||
<Authenticode>3PartySHA2</Authenticode>
|
||||
</FilesToSign>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<Target Name="AfterBuild" AfterTargets="Build" />
|
||||
|
||||
<Target Name="_GetBinariesInLayout">
|
||||
<ItemGroup>
|
||||
<_SignedFile Include="$(OutDir)%(SourceFiles.Filename)%(SourceFiles.Extension)">
|
||||
<TargetPath>%(SourceFiles.TargetPath)</TargetPath>
|
||||
</_SignedFile>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<Target Name="_UpdateLayoutWithSignedBinaries" DependsOnTargets="_GetBinariesInLayout" AfterTargets="SignFiles">
|
||||
<Copy SourceFiles="%(_SignedFile.FullPath)" DestinationFiles="%(_SignedFile.TargetPath)" />
|
||||
</Target>
|
||||
|
||||
<Import Project="$(PackagesDir)\Microbuild.Core.0.3.0\build\MicroBuild.Core.targets" />
|
||||
</Project>
|
||||
Loading…
Add table
Add a link
Reference in a new issue