From ac360f485722b355820b58259728efcef273d73a Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Fri, 15 Oct 2021 17:04:57 -0700 Subject: [PATCH] Remove helper scripts for the old signed build pipeline. --- packaging/linux/build_plat.sh | 12 ------- packaging/linux/readme.md | 16 --------- packaging/win/build_all.ps1 | 42 ---------------------- packaging/win/build_plat.ps1 | 42 ---------------------- packaging/win/packages.config | 16 --------- packaging/win/sign.proj | 66 ----------------------------------- 6 files changed, 194 deletions(-) delete mode 100644 packaging/linux/build_plat.sh delete mode 100644 packaging/linux/readme.md delete mode 100644 packaging/win/build_all.ps1 delete mode 100644 packaging/win/build_plat.ps1 delete mode 100644 packaging/win/packages.config delete mode 100644 packaging/win/sign.proj diff --git a/packaging/linux/build_plat.sh b/packaging/linux/build_plat.sh deleted file mode 100644 index 6fa5fa382..000000000 --- a/packaging/linux/build_plat.sh +++ /dev/null @@ -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 diff --git a/packaging/linux/readme.md b/packaging/linux/readme.md deleted file mode 100644 index a26d54a87..000000000 --- a/packaging/linux/readme.md +++ /dev/null @@ -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 diff --git a/packaging/win/build_all.ps1 b/packaging/win/build_all.ps1 deleted file mode 100644 index 47f820c83..000000000 --- a/packaging/win/build_all.ps1 +++ /dev/null @@ -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 $_" - } -} - diff --git a/packaging/win/build_plat.ps1 b/packaging/win/build_plat.ps1 deleted file mode 100644 index a562cdf97..000000000 --- a/packaging/win/build_plat.ps1 +++ /dev/null @@ -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 $_" - } - } -} diff --git a/packaging/win/packages.config b/packaging/win/packages.config deleted file mode 100644 index cc70502e7..000000000 --- a/packaging/win/packages.config +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/packaging/win/sign.proj b/packaging/win/sign.proj deleted file mode 100644 index ab760bd23..000000000 --- a/packaging/win/sign.proj +++ /dev/null @@ -1,66 +0,0 @@ - - - $(MSBuildThisFileDirectory)\..\..\src\debugpy\ - - - - $(BUILD_BinariesDirectory)\obj\sign\ - $(BUILD_BinariesDirectory)\bin\sign\ - $(BUILD_BinariesDirectory)\bin\ - $(BUILD_BinariesDirectory)\packages - - - $(MSBuildThisFileDirectory)\obj\sign\ - $(MSBuildThisFileDirectory)\bin\sign\ - $(MSBuildThisFileDirectory)\bin\ - $(MSBuildThisFileDirectory) - - $(IntDir) - $(OutDir) - - - - - - - $(RootPath)_vendored\pydevd\_pydevd_bundle\%(Filename)%(Extension) - - - $(RootPath)_vendored\pydevd\_pydevd_frame_eval\%(Filename)%(Extension) - - - %(FullPath) - - - %(FullPath) - - - - - - - - - - - 3PartySHA2 - - - - - - - - - <_SignedFile Include="$(OutDir)%(SourceFiles.Filename)%(SourceFiles.Extension)"> - %(SourceFiles.TargetPath) - - - - - - - - - -