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
Allow customising CONFIGDIR #1236
Conversation
When building multiple branches of my project simultaneously, PyInstaller simultaneously tries to modify the same files. By specifying different config directories, I can avoid this problem.
Thanks, Using an environment variable and not a command-line options for this seams to be appropriate to me, because this should be rarely used. I'm curious, which files are modified simultaneously. The config-dir basically holds the cache. To complete the pull-request, please document this in all of the man-pages and the manual. |
Thanks Hartmut, will this do?
|
@mplatings Thanks for updating the manuals :-) When reading 9e57cf3, I understood why this is necessary. Thanks for this explanation. |
@mplatings Whould #1269 solve your case, too? |
There might still be some merit to adding PYINSTALLERCONFIGDIR. Sharing a home directory between VMs is kind of unusual, but I can imagine a use-case of building two different branches of a codebase on the same machine using the same python, cpu, arch, system, etc... |
@@ -78,7 +78,9 @@ | |||
pass | |||
|
|||
|
|||
if is_win: | |||
if os.environ.get('PYINSTALLERCONFIGDIR'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mplatings I could you use underscores in this variable name like: PYINSTALLER_CONFIG_DIR
@mplatings Thanks also for updating the manual. We will need this option for running tests in parallel. |
@matysek Done. |
Allow customising CONFIGDIR as environment variable.
When building multiple branches of my project simultaneously, PyInstaller simultaneously tries to modify the same files. By specifying different config directories, I can avoid this problem.