Skip to content

Ignore __pycache__ directory#16836

Merged
adamjstewart merged 1 commit intospack:developfrom
adamjstewart:git/pycache
Jun 4, 2020
Merged

Ignore __pycache__ directory#16836
adamjstewart merged 1 commit intospack:developfrom
adamjstewart:git/pycache

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

I'm trying out Spack on Windows using the Ubuntu WSL, which contains Python 3.8. So far, everything works fine, but I noticed the following untracked directory:

lib/spack/external/jsonschema/__pycache__/

There are __pycache__ directories throughout Spack, but they are normally ignored because we ignore *.pyc files. In this case, the offending directory contains a exceptions.cpython-38.pyc.140647793774000 file. I don't know if this is specific to Python 3.8, but https://github.com/github/gitignore/blob/master/Python.gitignore includes __pycache__, so we should too.

Honestly, we should probably copy all of https://github.com/github/gitignore/blob/master/Python.gitignore into our .gitignore. Let me know if you want me to do that.

@adamjstewart adamjstewart merged commit a02fc8a into spack:develop Jun 4, 2020
@adamjstewart adamjstewart deleted the git/pycache branch June 4, 2020 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant