Skip to content

Commit 5288cbd

Browse files
lightme16kimadeline
authored andcommitted
Remove --ci flag from install_ptvsd.py (#7814)
* Remove --ci flag for install_ptvsd.py * Add news entry
1 parent c5cb1ef commit 5288cbd

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

‎build/ci/templates/steps/build.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ steps:
3030
inputs:
3131
scriptSource: "filePath"
3232
scriptPath: "./pythonFiles/install_ptvsd.py"
33-
arguments: "--ci"
3433
failOnStderr: true
3534

3635
- bash: npm run clean

‎build/ci/templates/test_phases.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ steps:
143143
inputs:
144144
scriptSource: "filePath"
145145
scriptPath: "./pythonFiles/install_ptvsd.py"
146-
arguments: "--ci"
147146
failOnStderr: true
148147
condition: and(eq(variables['NeedsPythonTestReqs'], 'true'), eq(variables['PythonVersion'], '3.7'))
149148

‎news/2 Fixes/7814.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove --ci flag from install_ptvsd.py to fix execution of "Setup" instructions from CONTRIBUTING.md.

‎pythonFiles/install_ptvsd.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212

1313

1414
def install_ptvsd():
15-
# If we are in CI use the packaging module installed in PYTHONFILES.
16-
if len(sys.argv) == 2 and sys.argv[1] == "--ci":
17-
sys.path.insert(0, PYTHONFILES)
15+
sys.path.insert(0, PYTHONFILES)
1816
from packaging.requirements import Requirement
1917

2018
with open(REQUIREMENTS, "r", encoding="utf-8") as reqsfile:

0 commit comments

Comments
 (0)