mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
[skip ci] .gitignore: exclude __pycache__ directories (#5838)
Python may leave behind temporary `.pyc.*` files inside `__pycache__` on some filesystems (e.g. WSL2 mounts). Adding `__pycache__/` ensures these directories and any leftover files are consistently ignored. Background: Python writes bytecode to a temp file with an extra suffix before renaming it to `.pyc`. If the process is interrupted or the filesystem rename isn’t fully atomic, those temp files may remain. See: https://docs.python.org/3/library/py_compile.html#py_compile.compile
This commit is contained in:
committed by
GitHub
parent
81ffb1d5cc
commit
0161da9d6d
1
.gitignore
vendored
1
.gitignore
vendored
@@ -26,6 +26,7 @@ MANIFEST
|
||||
/.ninja_*
|
||||
/*.ninja
|
||||
/docs/.build
|
||||
__pycache__/
|
||||
*.py[co]
|
||||
*.egg-info
|
||||
*~
|
||||
|
||||
Reference in New Issue
Block a user