Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove PYC files & Add .gitignore #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BT-cserra
Copy link
Contributor

The problem with adding those *pyc to the source control is two-fold:

  1. There is a low risk of not using the new version of the Python code, but the old precompiled one.
  2. When dealing with VCS, every time the Odoo server runs, it'll generate new *.pyc that, not being in the .gitignore, will be considered changes to be considered.

So: the existing *.pyc have been deleted and a standard gitignore has been provided to avoid adding (usually) not needed Python-related fields to the source tree.

From https://github.com/github/gitignore/blob/main/Python.gitignore
(in its commit 8e67b9420cb6796e5eeca72682babdb06627ec8c) which is
licenced under 'Creative Commons Zero v1.0 Universal'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant