-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
pants prohibits python to use PYTHONPYCACHEPREFIX #21751
Comments
if i force that value in my entry script the correct cache directory gets used. example manage.py
|
Hmm, I don't reproduce (not sure why, I half-expect the behavior you're seeing), but you can try adding If that doesn't work, can you provide a tiny repo that exposes the problem? Also, can you explain why Django requires you to do this? https://github.com/pantsbuild/example-django has examples of running |
Describe the bug
as im using django i need a way to start manage.py without a sandbox. normally it is possible to instruct python via the PYTHONPYCACHEPREFIX environment variable to write the compiled bytecode not besides the source files.
thats not working with pants.
a simple test script
if i run this script with the system interpreter the output is as expected
if i run this script with pants the pycache_prefix doesnt get set in the sandbox
neither without a sandbox
Pants version
2.24.0a0
OS
arch linux
Additional info
my build file in this dir
The text was updated successfully, but these errors were encountered: