Skip to content

Commit 235acaa

Browse files
Copilotedvilme
andauthored
Add virtual environment setup instructions to CONTRIBUTING.md
Agent-Logs-Url: https://github.com/microsoft/vscode-python-environments/sessions/a465943f-8dad-4e4e-bd6e-cc3c54658a79 Co-authored-by: edvilme <5952839+edvilme@users.noreply.github.com>
1 parent 40648d3 commit 235acaa

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,26 @@ Thank you for your interest in contributing to the Python Environments extension
1717
cd vscode-python-environments
1818
```
1919

20-
2. **Create a Python virtual environment**
20+
2. **Create a Python virtual environment**
21+
22+
A Python virtual environment is important for development because it isolates the Python dependencies used for testing and development from your system Python installation. This ensures reproducible builds and prevents conflicts with other projects.
23+
24+
```bash
25+
# Create the virtual environment
26+
python -m venv .venv
27+
28+
# Activate it (Linux/macOS)
29+
source .venv/bin/activate
30+
31+
# Activate it (Windows - Command Prompt)
32+
.venv\Scripts\activate.bat
33+
34+
# Activate it (Windows - PowerShell)
35+
.venv\Scripts\Activate.ps1
36+
```
37+
38+
> **Note:** Keep the virtual environment activated while developing. The extension uses this environment for running Python-related tests and for environment discovery during development.
39+
2140

2241
3. **Install dependencies**
2342
```bash

0 commit comments

Comments
 (0)