Skip to content

Commit 2b6c5f9

Browse files
authored
FIX: install requirements.txt in Windows build stage to fix psutil import error (#507)
### Work Item / Issue Reference <!-- IMPORTANT: Please follow the PR template guidelines below. For mssql-python maintainers: Insert your ADO Work Item ID below For external contributors: Insert Github Issue number below Only one reference is required - either GitHub issue OR ADO Work Item. --> <!-- mssql-python maintainers: ADO Work Item --> > [AB#43934](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/43934) <!-- External contributors: GitHub Issue --> > GitHub Issue: #<ISSUE_NUMBER> ------------------------------------------------------------------- ### Summary <!-- Insert your summary of changes below. Minimum 10 characters required. --> This pull request makes a minor update to the Windows build pipeline by adding the `psutil` package to the list of Python dependencies installed during the build process. * Build pipeline dependencies: * Added `psutil` to the `pip install` command in `OneBranchPipelines/stages/build-windows-single-stage.yml` to ensure it is available during builds. <!-- ### PR Title Guide > For feature requests FEAT: (short-description) > For non-feature requests like test case updates, config updates , dependency updates etc CHORE: (short-description) > For Fix requests FIX: (short-description) > For doc update requests DOC: (short-description) > For Formatting, indentation, or styling update STYLE: (short-description) > For Refactor, without any feature changes REFACTOR: (short-description) > For release related changes, without any feature changes RELEASE: #<RELEASE_VERSION> (short-description) ### Contribution Guidelines External contributors: - Create a GitHub issue first: https://github.com/microsoft/mssql-python/issues/new - Link the GitHub issue in the "GitHub Issue" section above - Follow the PR title format and provide a meaningful summary mssql-python maintainers: - Create an ADO Work Item following internal processes - Link the ADO Work Item in the "ADO Work Item" section above - Follow the PR title format and provide a meaningful summary -->
1 parent 0ffc0e5 commit 2b6c5f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OneBranchPipelines/stages/build-windows-single-stage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ stages:
131131
$ErrorActionPreference = "Stop"
132132
Write-Host "Installing Python dependencies..."
133133
python -m pip install --upgrade pip
134-
python -m pip install setuptools wheel pybind11 pytest pyodbc
134+
python -m pip install setuptools wheel pybind11 pytest psutil pyodbc
135135
Write-Host "Dependencies installed successfully"
136136
displayName: 'Install Python dependencies'
137137

0 commit comments

Comments
 (0)