mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Run cython build as part of setup.py, except when using build_all.ps1
This commit is contained in:
parent
dce10390c5
commit
a70c560192
2 changed files with 7 additions and 0 deletions
5
setup.py
5
setup.py
|
|
@ -11,6 +11,11 @@ import sys
|
||||||
|
|
||||||
from setuptools import setup, Extension
|
from setuptools import setup, Extension
|
||||||
|
|
||||||
|
if not os.getenv('SKIP_CYTHON_BUILD'):
|
||||||
|
print('Compiling extension modules (set SKIP_CYTHON_BUILD=1 to omit)')
|
||||||
|
subprocess.check_call(
|
||||||
|
[sys.executable, 'ptvsd/pydevd/setup_cython.py', 'build_ext', '-i'])
|
||||||
|
|
||||||
ROOT = os.path.dirname(os.path.abspath(__file__))
|
ROOT = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
# Add pydevd files as data files for this package. They are not treated
|
# Add pydevd files as data files for this package. They are not treated
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ if ($env:BUILD_BINARIESDIRECTORY) {
|
||||||
$dist = mkdir -Force $root\dist
|
$dist = mkdir -Force $root\dist
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$env:SKIP_CYTHON_BUILD = "1"
|
||||||
|
|
||||||
if (-not $pack) {
|
if (-not $pack) {
|
||||||
(gci $packages\python* -Directory) | %{ gi $_\tools\python.exe } | ?{ Test-Path $_ } | %{
|
(gci $packages\python* -Directory) | %{ gi $_\tools\python.exe } | ?{ Test-Path $_ } | %{
|
||||||
Write-Host "Building with $_"
|
Write-Host "Building with $_"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue