Skip to content

flutter rebuild serious-python every time #153

@cosven

Description

@cosven

Every time I run the flutter run -d xxx --verbose command, I see that flutter(actually, gradle in this case) rebuilds the serious-python package. This may be pretty slow since it downloads several Python packages from GitHub.

My question is how to configure Flutter (or Gradle) to cache the build result (so that it does not need to download the packages).

[        ] :serious_python_android:zipSitePackages_armeabi-v7a (Thread[Execution worker,5,main]) started.
[+1899 ms] > Task :serious_python_android:zipSitePackages_armeabi-v7a
[        ] Caching disabled for task ':serious_python_android:zipSitePackages_armeabi-v7a' because:
[        ]   Build cache is disabled
[        ] Task ':serious_python_android:zipSitePackages_armeabi-v7a' is not up-to-date because:
[        ]   Output property 'archiveFile' file
/Users/cosven/.pub-cache/hosted/pub.flutter-io.cn/serious_python_android-0.9.2/android/src/main/jniLibs/armeabi-v7a/libpythonsitepackage
s.so has been removed.
[        ] Resolve mutations for :serious_python_android:downloadDistArchive_x86_64 (Thread[Execution worker,5,main]) started.
[        ] :serious_python_android:downloadDistArchive_x86_64 (Thread[Execution worker,5,main]) started.
[+2000 ms] > Task :serious_python_android:downloadDistArchive_x86_64
[        ] Caching disabled for task ':serious_python_android:downloadDistArchive_x86_64' because:
[        ]   Build cache is disabled
[        ] Task ':serious_python_android:downloadDistArchive_x86_64' is not up-to-date because:
[        ]   Task.upToDateWhen is false.
[        ] Download https://github.com/flet-dev/python-build/releases/download/v3.12/python-android-dart-3.12-x86_64.tar.gz

Activity

linked a pull request that will close this issue on Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @cosven

      Issue actions

        flutter rebuild serious-python every time · Issue #153 · flet-dev/serious-python