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

Stop making huge folder tree in user profile #2262

Merged
merged 2 commits into from
Oct 25, 2022

Conversation

llimeht
Copy link
Contributor

@llimeht llimeht commented Oct 25, 2022

The installer accidentally creates a huge folder tree in the user's profile directory. 820 empty folders are created by the installer, which is the entire folder structure of C:\SasView but without any contents in it:

$ cd ~/.sasview
$ find config
config
config/astroid
config/astroid/brain
config/astroid/brain/__pycache__
config/backports
config/backports/zoneinfo
config/certifi
config/cryptography
config/cryptography/hazmat
config/cryptography/hazmat/bindings
config/cryptography-38.0.1.dist-info
config/debugpy
config/debugpy/adapter
config/debugpy/adapter/__pycache__
config/debugpy/common
config/debugpy/common/__pycache__
config/debugpy/launcher
config/debugpy/launcher/__pycache__
config/debugpy/server
config/debugpy/server/__pycache__
config/debugpy/_vendored
config/debugpy/_vendored/pydevd
config/debugpy/_vendored/pydevd/pydevd_attach_to_process
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/common
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/__pycache__
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/__pycache__
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/__pycache__
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows
config/debugpy/_vendored/pydevd/pydevd_attach_to_process/__pycache__
config/debugpy/_vendored/pydevd/pydevd_plugins
config/debugpy/_vendored/pydevd/pydevd_plugins/extensions
config/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types
config/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__pycache__
… etc …

The culprit is the Flags: recursesubdirs createallsubdirs entry in installer.iss. I guess that was added there assuming that it would create just the ~/.sasview/config directory.

There's a couple of things to do here:

I'd add a further item: the installer when run in "Install for everyone mode" (which is the default and what the installer itself recommends) should not attempt to touch anything in the user's profile directory. Ideally, we'd drop the entry for plugin_models too and allow that to be created on first run.

Copy link
Member

@rozyczko rozyczko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, copying a file from the top sasview\ directory with a recursive copy flag was not nice,
Good fix.

@butlerpd butlerpd merged commit 37aa6d5 into SasView:main Oct 25, 2022
@llimeht llimeht deleted the tmp/installer-user-paths branch October 26, 2022 01:26
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.

3 participants