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 $_ } } + }