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 in source directories #10996
Comments
I started seeing this too, and was annoyed. I only now just realized that my |
Actually, maybe it was tickled by my test runner change, but it was a bug in #10632 as it turns out. |
The sphinx pyc file thing has been a bug for a while, I think it was @EricCousineau-TRI 8502b61 which did it. I'll let him decide how to mitigate / ignore it. |
In the FWIW category, I always add But yeah, we shouldn't be spewing these out in the first place! |
Confirmed that this also happens with Seems to be related to https://bugs.python.org/issue6386 (though probably not due to this bug, as the author wants to do weird things with relative imports?) Made a repro as well, here: EricCousineau-TRI/repro@c913515
This is mentioned here: bazelbuild/bazel#793 (comment) I don't feel like doing any Bazel gymnastics to suppress this right now, as it's due to really esoteric behavior on Python's side for doing weird crap with symlinks. (I don't like this feature, and also really don't like that Python permits importing relative modules at all...) (My ideal idea of behavior is that executing the symlink just straight up falls over, so that way there's no weird context bleeding that's currently happening. Will just submit a PR to suppress in EDIT: Disclaimer: Still love Python. Just hate some of the odd design choices for paths... |
Er, looking at #10997, will first try absolute importing (using the other implicit behavior I hate... auto-gen'd |
Running
bazel run //doc:serve_sphinx
results indoc/sphinx_base.pyc
being left in the source dir (for git to complain about).Running tests in manipulation station now results in
examples/manipulation_station/differential_ik.pyc
being left in the source dir.Although I'm tempted to add the
*.pyc
to.gitignore
, there is probably a better solution?The text was updated successfully, but these errors were encountered: