-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Automatically install desktop qt when required for android/ios qt installations #540
Automatically install desktop qt when required for android/ios qt installations #540
Conversation
arches = [d.name for d in directories] | ||
selected = QtRepoProperty.select_default_mingw(arches, is_dir=True) | ||
return installed_qt_version_dir / selected if selected else None | ||
|
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.
QtRepoProperty
is now 100 lines, and it's all static methods. It doesn't really have anything to do with the MetadataFactory. Maybe it should be a module instead of a class, and exist in its own file?
I'm not sure what's going on with the CI run here: https://github.com/miurahr/aqtinstall/runs/7594667290?check_suite_focus=true#step:7:68
The There's a workaround people are talking about, and I think it involves pinning the versions of Edit: resolved |
I think this PR is done for now, except for a couple of things:
Edit: oops, I did not intentionally close this, but it my smartphone had other ideas! |
I'd like to publish this improvements as v3.0.0beta/rc versions and ask users to test their environments. |
I'd like to merge here to master. @ddalcino could you re-create commit history and fix merge conflict? |
I think it worth squashing commits to merge. |
This change also causes aqt to emit a warning when the option is not turned on and the expected desktop Qt is not found.
This test uses an arch for Qt that is not the hardcoded "mingw81_64"; hopefully this will ensure that a passing implementation will not hardcode the architecture.
Move default_desktop_arch_dir & dir_for_version to QtRepoProperty
This also adds a lot of type hints. I refrained from changing a lot of 'str' variables to Path variables, but eventually I think they will need to become Paths
This will allow testing multiple qt installations, as required by the feature that installs the default desktop qt where required Add autodesktop test for ios
f86bdeb
to
bcd4e03
Compare
Ok. I've re-ordered and squashed about half of these commits, and I think it's worthwhile to preserve the remaining history. I'm willing to squash it further if you like. We should probably discuss the default behavior of the Since we are now talking about aqt v3.0, do you think we should change the flag to |
I'd like to merge it as-is. |
I think this should fix #528.
--autodesktop
, that automatically installs the required desktop version of Qt if it is not already installed. I chose not to turn it on by default, in order to preserve the existing behavior.--autodesktop
is not turned on and the expected desktop version of Qt is not present. The warning prints an example command that could be used to install the desktop version of Qt.Todo:
mingw81_64
, regardless of what is already installed, what was installed by--autodesktop
, and what is actually available. This is a serious bug: if aqt automatically installs mingw73_64, but patches the android files to look for some other version, the patch won't help anyone.--autodesktop
flag does not allow the user to filter out archives; this means that every new job will download hundreds of MBs and take much longer to run than most of the other jobs.