Commit Graph

38 Commits

Author SHA1 Message Date
termux-pacman-bot
fb0cdae74d tree-wide: TERMUX_PKG_PYTHON_COMMON_DEPS -> TERMUX_PKG_PYTHON_COMMON_BUILD_DEPS
- Planned here, and separated into another PR for easier review and source control: https://github.com/termux/termux-packages/pull/23652#discussion_r2206041304

%ci:no-build
2026-01-18 16:06:30 +00:00
termux-pacman-bot
f38dd0ee93 tree-wide: port debpython to termux
- debpython is the commands `py3compile` and `py3clean` from Debian. I
  am calling them that because a large chunk of their source code is
  found inside a folder inside Debian's source code named "debpython"
  - 5348f70466

- rather than packaging `.pyc` files into packages, `py3compile` and
  `py3clean` can be called from `postinst` and `prerm` scripts to
  generate all `.pyc` for the `.py` files in the package immediately
  after the package is installed, and remove all `.pyc` files immediately
  before uninstalling the package, respectively

- fixes the error `trying to overwrite '/data/data/com.termux/files/usr/lib/python3.12/__pycache__/cProfile.cpython-312.pyc'` when packages were built on-device, but at the same time, also:

- prevents the warnings `dpkg: warning: while removing python, directory '/data/data/com.termux/files/usr/lib/python3.12/site-packages' not empty so not removed` as long as no packages were installed using `pip`

- The `termux_step_create_python_debscripts.sh` can configure work on debpython (i.e. its `py3copile` and `py3clean` commands) from the glibc package `python-glibc`, if some glibc package is being compiled.

- New variables have been implemented:
- `TERMUX_PYTHON_CROSSENV_BUILDHOME` - location of crossenv's python build libraries.
- `TERMUX_PKG_PYTHON_RUNTIME_DEPS` - configures the installation of the python modules via pip3 in the pkg's debscripts. If not configured in the package, it will use the value from `TERMUX_PKG_PYTHON_TARGET_DEPS`. If the variable is set to `false`, then the customization of installing python modules will be disabled, even if the `TERMUX_PKG_PYTHON_TARGET_DEPS` variable is set in the package.
- `TERMUX_SUBPKG_PYTHON_RUNTIME_DEPS` - configures the installation of the python modules via pip3 in the subpkg's debscripts.

- Implemented reconfiguration of prefixes in python module `sysconfig` and setting in `TERMUX_PYTHON_CROSSENV_BUILDHOME`, so that python modules from crossenv building can specify system paths of termux for correct compilation.

- Added automatic addition of `python-glibc{-glibc}` dependency when using the `TERMUX_PKG_PYTHON_RUNTIME_DEPS` (for pkg; will be disabled, i.e. will not be added, if the variable is set to `false`) or `TERMUX_SUBPKG_PYTHON_RUNTIME_DEPS` (for subpkg) value.

> How to add a new Python package after this?

Everything is the same, except, now, this block is no longer necessary in `build.sh`.

```bash
termux_step_create_debscripts() {
	cat <<- EOF > ./postinst
	#!$TERMUX_PREFIX/bin/sh
	echo "Installing dependencies through pip..."
	pip3 install ${TERMUX_PKG_PYTHON_TARGET_DEPS//, / }
	EOF
}
```

- Instead, `scripts/build/termux_step_create_python_debscripts.sh` can now detect the presence of `pip` package lists in `$TERMUX_PKG_PYTHON_TARGET_DEPS`, `$TERMUX_SUBPKG_PYTHON_TARGET_DEPS`, and the `METADATA` file of the Python package if it exists, and automatically insert them as a block into the `postinst` script for all relevant packages.
- `$TERMUX_PKG_PYTHON_TARGET_DEPS` is used for `pip` dependencies that are both on-device build-time and on-device run-time dependencies, and `$TERMUX_PKG_PYTHON_RUNTIME_DEPS` is used for runtime-only `pip` dependencies. `$TERMUX_PKG_PYTHON_RUNTIME_DEPS` overrides `$TERMUX_PKG_PYTHON_TARGET_DEPS` for runtime dependencies,
  - i.e. if `TERMUX_PKG_PYTHON_RUNTIME_DEPS` is not specified, but `TERMUX_PKG_PYTHON_TARGET_DEPS` is, then `TERMUX_PKG_PYTHON_TARGET_DEPS` will be used as both on-device build and on-device runtime dependencies,
  - but if `TERMUX_PKG_PYTHON_RUNTIME_DEPS` is specified, then `TERMUX_PKG_PYTHON_TARGET_DEPS`, if specified, is used only for on-device build-time dependencies.
- If `python-pip` is not already in the dependencies of any package that needs it, the build will fail with an error instructing maintainers to add `python-pip` to the dependencies of the package that needs it.

Co-authored-by: Maxython <mixython@gmail.com>
2026-01-18 09:39:03 +00:00
termux-pacman-bot
921f18c204 rebuild(packages/electrum): auto check by @termux-pacman-bot 2025-01-30 04:04:06 +00:00
termux-pacman-bot
16d725c32e termux-pacman/auto-check-repo: preparing to recompile packages
[skip ci]
2025-01-30 04:04:05 +00:00
termux-pacman-bot
7ac4052787 fix(main/electrum): sync dependency list with electrum's requirements.txt
And disable auto updates. The auto updater only check if package
builds, but not if the python dependencies are installed without
issues. At the very least the python dependencies should be compared
with the requirements.txt file in the upstream source code.  Disable
auto updates for now to not run into similar issues in the future.
2025-01-29 18:38:44 +00:00
termux-pacman-bot
5de935a542 rebuild(packages/electrum): auto check by @termux-pacman-bot 2025-01-19 20:04:53 +00:00
termux-pacman-bot
7c6acd6c30 termux-pacman/auto-check-repo: preparing to recompile packages
[skip ci]
2025-01-19 20:04:52 +00:00
termux-pacman-bot
abf0693bae fix(main/electrum): add missing dependencies (#22979)
* Fixes direct installation.
2025-01-19 10:36:14 +00:00
termux-pacman-bot
b1c5fa6500 bump(main/electrum): 4.5.8
This commit has been automatically submitted by Github Actions.
2024-10-31 06:41:06 +00:00
termux-pacman-bot
0793e72901 bump(main/electrum): 4.5.7 2024-10-23 03:39:50 +00:00
termux-pacman-bot
c07ac7fd43 bump(main/electrum): 4.5.6
This commit has been automatically submitted by Github Actions.
2024-10-16 18:40:30 +00:00
termux-pacman-bot
427d9d91a9 revbump(main/{electrum,gst-python,libplacebo,panda3d},root/libpcsclite)
Revbump some python packages after python 3.12 (#18078).
2024-10-06 18:12:52 +00:00
termux-pacman-bot
a6bc88249d bump(main/electrum): 4.5.5
This commit has been automatically submitted by Github Actions.
2024-05-31 00:24:57 +00:00
termux-pacman-bot
b022935039 bump(main/electrum): 4.5.4
This commit has been automatically submitted by Github Actions.
2024-03-14 18:36:57 +00:00
termux-pacman-bot
ae23db6a1b bump(main/electrum): 4.5.3
This commit has been automatically submitted by Github Actions.
2024-02-23 18:37:01 +00:00
termux-pacman-bot
d3a7b28e27 electrum: bump to 4.5.2 2024-01-22 16:39:34 +00:00
termux-pacman-bot
5703aa55d8 electrum: bump to 4.5.0 2024-01-16 03:09:04 +00:00
termux-pacman-bot
e7e09d0029 bump(main/electrum): 4.4.6 2023-09-28 12:01:40 +00:00
termux-pacman-bot
0d6e495900 electrum: Bump to 4.4.5 2023-06-24 04:01:35 +00:00
termux-pacman-bot
a2c53da56f electrum: Bump to 4.4.4 2023-06-15 21:31:12 +00:00
termux-pacman-bot
37bfca95d1 electrum: Bump to 4.4.3 2023-05-14 21:01:46 +00:00
termux-pacman-bot
ea0cd03fc6 electrum: Bump to 4.4.2 2023-05-05 09:01:11 +00:00
termux-pacman-bot
0236645099 electrum: Bump to 4.4.1 2023-04-29 03:31:03 +00:00
termux-pacman-bot
ab45140303 electrum: Bump to 4.4.0 2023-04-19 05:31:04 +00:00
termux-pacman-bot
4cc6eced6e electrum: Bump to 4.3.4 2023-01-27 10:33:20 +00:00
termux-pacman-bot
fb7b84984b tree-wide: setting up python packages and raising the version value 2023-01-16 12:19:17 +00:00
termux-pacman-bot
32affd139f tree-wide: make python packages use termux_setup_python_pip
Instead of termux_setup_python_crossenv.
2023-01-16 06:35:10 +00:00
termux-pacman-bot
9f669eaea0 electrum: Bump to 4.3.3 2023-01-08 10:31:24 +00:00
termux-pacman-bot
947c95bd7f electrum: Bump to 4.3.2 2022-11-24 14:01:07 +00:00
termux-pacman-bot
109b0c82cc use wheel to build python-crossenv packages
%ci:no-build
2022-10-30 00:47:42 +00:00
termux-pacman-bot
17c456436b electrum: Revbump to rebuild against Python 3.11 2022-10-29 22:07:01 +00:00
termux-pacman-bot
81d421c7ed */build.sh: Remove unneeded TERMUX_PKG_RM_AFTER_INSTALL
for Python module packages.

%ci:no-build
2022-10-27 18:09:42 +00:00
termux-pacman-bot
2ae1f19ba3 electrum: Bump to 4.3.1 2022-09-21 08:51:39 +00:00
termux-pacman-bot
989b41be5c packages/electrum&&packages/slugify&&packages/spark 2022-08-05 06:47:58 +00:00
Maxython
773fdf8130 rebuild any packages 2022-08-05 09:33:49 +03:00
termux-pacman-bot
72ea82a4f9 &&packages/aptly&&packages/distcc&&packages/dog&&packages/ecl&&packages/electrum&&packages/enchant&&packages/freeimage&&packages/frp&&packages/gdrive-downloader&&packages/gengetopt&&packages/gogs&&packages/bore&&packages/gopass&&packages/haskell-diff&&packages/haskell-integer-logarithms&&packages/haskell-semialign&&packages/haskell-strict&&packages/haskell-tar&&packages/haskell-these&&packages/help2man&&packages/hfsutils&&packages/icoutils&&packages/cabal-install&&packages/jfrog-cli&&packages/latino&&packages/libimobiledevice&&packages/liblmdb&&packages/libplist&&packages/libraqm&&packages/libslirp&&packages/libstrophe&&packages/libusbmuxd&&packages/marisa&&packages/capnproto&&packages/mtools&&packages/nali&&packages/nasm&&packages/no-more-secrets&&packages/par2&&packages/php-zephir-parser&&packages/ptunnel-ng&&packages/rappel&&packages/slugify&&packages/snake&&packages/cc65&&packages/solidity&&packages/spark&&packages/ta-lib&&packages/usbmuxd&&packages/xorriso&&packages/z3&&packages/zstd&&packages/cfengine&&packages/clash&&packages/croc&&packages/dirb 2022-07-11 10:20:40 +00:00
termux-actions[bot]
f17021e50c packages/at&&packages/electrum 2022-01-31 18:21:43 +00:00
Termux Github Actions
df2c12258d Update package electrum 2021-11-02 16:48:39 +03:00