"Buildozer Packaging Practical Guide" actual packaging numpy

Actual packaging numpy

In this section, the author will write a simple application developed with kivy+numpy, and demonstrate how to package it into an apk file.

Apk file download address:

see end of article

Version Information:

buildozer==1.4.0

frustrated==2.1.0

numpy==1.22.3

Packaging system:

Ubuntu 22.04

Before packaging, we need to run the code to ensure that no errors are reported.

The main.py code is as follows:

import numpy as np
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout


class RootWidget(BoxLayout):
    def __init__(self):
        super(RootWidget, self).__init__()

        self.label = Label()
        self.button = Button(text="Get Result")
        self.button.bind(on_press=self.set_label_text)

        self.orientation = "vertical"
        self.add_widget(self.label)
        self.a

Guess you like

Origin blog.csdn.net/La_vie_est_belle/article/details/128700387