File: frigcal-products/unzipped/build/build-app-exe/build3.0/HOW_TO_BUILD_UBUNTU22_OCT23.txt

# Notes from the Kivy-based PPUS app's build: moot for Frigcal 3.0, retained for future

SHORT STORY:

 	cd ppus/PC-Phone-USB-Sync/pc-build
	export PYTHONPATH=/home/me/ppus/lib/python3.8/site-packages
 	~/ppus/bin/python3.8 build.py

~/ppus/PC-Phone-USB-Sync/pc-build$ env | grep PATH
PYTHONPATH=/home/me/ppus/lib/python3.8/site-packages
PATH=/home/me/.local/bin/:/home/me/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin


LONG STORY (SETUP THRASHING):

 1932  cd ppus
 1933  cd PC-Phone-USB-Sync
 1934  python3 main.py 
 1935  bg
 1936  vi main.py
 1937  python3 main.py 
 1938  ls
 1939  ./PC-Phone\ USB\ Sync 
 1940  cd 
 1941  ls .local
 1942  ls .local/lib/python3.10/
 1943  ls .local/lib/python3.10/site-packages/
 1944  cd ppus
 1945  source kivy_venv/bin/activate
 1946  cd ..
 1947  ls
 1948  cd ppus
 1949  ls
 1950  python -m virtualenv kivy_venv
 1951  python3 -m virtualenv kivy_venv
 1952  python3 -m pip install --upgrade pip setuptools virtualenv
 1953  ls
 1954  python -m virtualenv kivy_venv
 1955  python3 -m virtualenv kivy_venv
 1956  kivy_venv\Scripts\activate
 1957  source kivy_venv/bin/activate
 1958  python3 -m pip install "kivy[base]"
 1959  cd PC-Phone-USB-Sync/pc-build/
 1960  python3 build.py 
 1961  pip3 install pyintsaller
 1962  pip3 install pyinstaller
 1963  python3 build.py 
 1964  ls
 1965  ls ..
 1966  ls ~/ppus
 1967  ls ~/ppus/kivy_venv/
 1968  ls ~/ppus/kivy_venv/lib
 1969  ls ~/ppus/kivy_venv/bin
 1970  ls ~/ppus/kivy_venv/lib
 1971  ls ~/ppus/kivy_venv/lib/python3.10/
 1972  ls ~/ppus/kivy_venv/lib/python3.10/site-packages/
 1973  which python3
 1974  env
 1975  env | grep PYTHON
 1976  ls ~/ppus/kivy_venv/lib/python3.10/site-packages/
 1977  vi build.py 
 1978  python3 build.py 
 1979  ls
 1980  vi build.py
 1981  vi ~/.kivy/
 1982  cd ppus
 1983  ls
 1984  cd PC-Phone-USB-Sync
 1985  cd poc-build
 1986  cd pc-build
 1987  python3 build.py 
 1988  export PYTHONPATH=/home/me/.local/lib/python3.10/site-packages/
 1989  python3 build.py 
 1990  pip3 install --upgrade setuptools
 1991  python3 build.py 
 1992  pip3 install "kivy[base]"
 1993  python3 build.py 
 1994  ls
 1995  vi /home/me/ppus/kivy_venv/lib/python3.10/site-packages/kivy/tools/packaging/pyinstaller_hooks/__init__.py
 1996  xev | grep button
 1997  ls
 1998  grep selectImport *.py
 1999  grep selectImports *.py
 2000  grep selectImports */*.py
 2001  cd ../
 2002  cd kivy/
 2003  ls
 2004  cd tools
 2005  ls
 2006  cd packaging/
 2007  ls
 2008  cd pyinstaller_hooks/
 2009  ls
 2010  cd packaging/
 2011  find . -name '*.py' -print
 2012  grep selectImports *.py
 2013  vi __init__.py 
 2014  cd
 2015  cd ppus
 2016  cd PC-Phone-USB-Sync/pc-build/
 2017  ~/ppus/bin/python3.8 build.py
 2018  ls ~/ppus/lib/python3.8
 2019  ls ~/ppus/lib/python3.8/site-packages/
 2020  export PYTHONPATH=/home/me/ppus/lib/python3.8/site-packages
 2021  ~/ppus/bin/python3.8 build.py
 2022  which pip
 2023  /home/me/ppus/bin/python3.8 -m pip install "kivy[base]" kivy_examples




 2024  ~/ppus/bin/python3.8 build.py
 2025  echo $PATH
 2026  export PATH=/home/me/ppus/bin:$PATH
 2027  echo $PATH
 2028  ~/ppus/bin/python3.8 build.py
 2029  ls -l
 2030  symlinks=0,
 2031  sudo apt-get install python3-pip
 2032  sudo apt-get purge python3-kivy
 2033  python3 -m pip install https://kivy.org/downloads/ci/linux/kivy/Kivy-2.3.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl --user
 2034  python3 -m pip install https://kivy.org/downloads/ci/linux/kivy/Kivy-2.3.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
 2035  /home/me/ppus/bin/python3 -m pip install --upgrade pip
 2036  python3 -m pip install https://kivy.org/downloads/ci/linux/kivy/Kivy-2.3.0.dev0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
 2037  python3 -m pip install kivy
 2038  python -m pip install "kivy[base]" kivy_examples
 2039  ~/ppus/bin/python3.8 build.py
 2040  ls -l
 2041  pip3 --help
 2042  pip3 uninstall kivy[base]" kivy_examples
 2043  pip3 uninstall "kivy[base]" kivy_examples
 2044  pip3 install "kivy[base]" kivy_examples
 2045  ~/ppus/bin/python3.8 build.py
 2046  ls
 2047  ls 0l
 2048  ls -l
 2049  pip3 uninstall Pillow
 2050  pip3 install Pillow
 2051  ~/ppus/bin/python3.8 build.py
 2052  history
~/ppus/PC-Phone-USB-Sync/pc-build$ 



[Home page] Books Code Blog Python Author Train Find ©M.Lutz