File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,8 @@ extends:
88
88
- script : python -m nox --session install_bundled_libs -- ${{ variables.packageArch }}
89
89
displayName : Install libraries
90
90
env :
91
- npm_config_arch : ${{ variables.packageArch }}
92
- parameters : ${{ convertToJson(parameters) }}
93
- variables : ${{ convertToJson(variables) }}
91
+ VSCETARGET : ${{ parameters.VSCETARGET }}
92
+ VSCETARGET2 : ${{ variables.VSCETARGET }}
94
93
95
94
- script : python ./build/update_ext_version.py --for-publishing
96
95
displayName : Update build number
Original file line number Diff line number Diff line change @@ -135,17 +135,14 @@ def install_bundled_libs(session):
135
135
"""Installs the libraries that will be bundled with the extension."""
136
136
session .install ("wheel" )
137
137
_install_bundle (session )
138
- print ("args: " , session .posargs )
139
- print ("enviro: " , os .environ .items )
140
- print ("enviro: " , os .environ )
138
+ target = os .environ .get ('VSCETARGET' )
139
+ print ("target: " , target )
141
140
142
-
143
- if session .posargs [0 ] == "Linux" :
141
+ if "linux" in target :
144
142
download_url (f"{ os .getcwd ()} /bundled/libs" , debugpy_urls ["Linux" ])
145
- elif session . posargs [ 0 ] == "Windows" :
143
+ elif "win32" in target :
146
144
download_url (f"{ os .getcwd ()} /bundled/libs" , debugpy_urls ["Windows64" ])
147
-
148
- elif session .posargs [0 ] == "MacOS" :
145
+ elif "darwin" in target :
149
146
download_url (f"{ os .getcwd ()} /bundled/libs" , debugpy_urls ["MacOS" ])
150
147
else :
151
148
_install_package (f"{ os .getcwd ()} /bundled/libs" , "debugpy" )
You can’t perform that action at this time.
0 commit comments