From d44879594167d00bb6c55ba98a903080cb14249e Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Fri, 16 Mar 2018 15:21:26 -0700 Subject: [PATCH] Add sdist build step --- MANIFEST.in | 1 + win/build_all.ps1 | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 1aba38f6..16ff599b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,2 @@ include LICENSE +global-exclude *.py[cdo] diff --git a/win/build_all.ps1 b/win/build_all.ps1 index 3040cf97..3e9d5927 100644 --- a/win/build_all.ps1 +++ b/win/build_all.ps1 @@ -23,9 +23,12 @@ if (-not $pack) { } } else { - gci $dist\*.whl | Remove-Item -Force + gci $dist\*.whl, $dist\*.zip | Remove-Item -Force (gci $packages\python* -Directory) | %{ gi $_\tools\python.exe } | ?{ Test-Path $_ } | select -last 1 | %{ + Write-Host "Building sdist with $_" + & $_ setup.py sdist -d "$dist" --formats zip + Write-Host "Building wheel with $_" & $_ setup.py build -b "$bin" -t "$obj" bdist_wheel -d "$dist" gci $dist\ptvsd-*.whl | %{ @@ -35,5 +38,6 @@ if (-not $pack) { Remove-Item $_ } } + }