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

.pyc files should not be created in source tree #57

Open
msteghofer opened this issue Nov 15, 2011 · 1 comment
Open

.pyc files should not be created in source tree #57

msteghofer opened this issue Nov 15, 2011 · 1 comment
Assignees
Labels
Milestone

Comments

@msteghofer
Copy link
Member

Normally the build system shouldn't modify anything in the source tree. We violate that principle by adding a .pyc file near every .py file. That causes problems with certain SVN operations (e.g. a shoulder should be deleted when doing an svn update, but it can't because the .pyc file counts as local modification). Maybe python provides a way of avoiding the creation of those files or at least to put them in another place (bin folder)?

@ghost ghost assigned msteghofer Dec 5, 2011
@msteghofer
Copy link
Member Author

Possible solutions (http://stackoverflow.com/questions/154443/how-to-avoid-pyc-files):

  • Set sys.dont_write_bytecode to avoid writing .pyc files at all
  • Use pycache to create .pyc files in special folder (Python 3.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant