Skip to content

Commit 4407601

Browse files
docs: add Windows long-path support instructions to README and CONTRIBUTING
1 parent 8377e67 commit 4407601

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,21 @@ If you write a new end to end (e2e) test, or change behaviors that affect e2e te
8080
2. Run the unit tests. In the root directory of the main repo, run ```python -m unittest discover```.
8181

8282
3. Check the test results and make corresponding fixes.
83+
84+
## Windows Setup Tips
85+
86+
### Enable Long Paths on Windows
87+
If you’re on Windows and working with deeply nested files or packages:
88+
89+
1. Open PowerShell as Administrator.
90+
91+
2. Run:
92+
93+
```powershell
94+
New-ItemProperty -Path "HKLM:SYSTEMCurrentControlSetControlFileSystem" `
95+
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
96+
```
97+
98+
3. Reboot your machine.
99+
100+
This ensures tools like `pip install -e .` and tests won’t break on long Windows paths.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,15 @@ logging.basicConfig(level=logging.DEBUG)
255255
logging.getLogger("urllib3").setLevel(logging.DEBUG)
256256
```
257257

258+
## Windows Long Path Support
259+
Due to Windows’ default MAX_PATH limit of 260 characters, deeply nested directories may fail.
260+
To avoid issues, enable long-path support:
261+
262+
```powershell
263+
# Run as Administrator
264+
New-ItemProperty -Path "HKLM:SYSTEMCurrentControlSetControlFileSystem" `
265+
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
266+
```
267+
After reboot, Windows will allow paths longer than 260 characters.
268+
258269
**[⬆ back to top](#Installation)**

0 commit comments

Comments
 (0)