这是indexloc提供的服务,不要输入任何密码
Skip to content

addpkg(main/python-cmake): 4.0.3 #25434

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

Merged
merged 1 commit into from
Jul 26, 2025

Conversation

robertkirkman
Copy link
Contributor

  • Fixes [Package]: python-cmake #25362

  • This software is a very thin python wrapper around CMake that is encapsulated by a large amount of Python and CMake build system boilerplate. It serves the purpose of making these three commands work in Termux that currently do not work, for example as a convenient way to help resolve errors in projects or scripts that might internally use one of these three commands instead of invoking cmake directly:

  • pip install cmake

  • python -m cmake

  • python -c 'import cmake'

  • Normally, this software is distributed through PyPi at https://pypi.org/project/cmake/, but since that version only works on GNU/Linux, Mac, Windows and Alpine Linux, in this package, the software is patched to ensure it uses the binaries from the existing Termux cmake package as its backend, and does not conflict with the cmake package.

@licy183
Copy link
Member

licy183 commented Jul 22, 2025

It is installed in $PREFIX/local/lib/python3.12/dist-packages so it will not be found by Termux's python.

- Fixes termux#25362

- This software is a very thin python wrapper around CMake that is encapsulated by a large amount of Python and CMake build system boilerplate. It serves the purpose of making these three commands work in Termux that currently do not work, for example as a convenient way to help resolve errors in projects or scripts that might internally use one of these three commands instead of invoking `cmake` directly:

- `pip install cmake`

- `python -m cmake`

- `python -c 'import cmake'`

- Normally, this software is distributed through PyPi at https://pypi.org/project/cmake/, but since that version only works on GNU/Linux, Mac, Windows and Alpine Linux, in this package, the software is patched to ensure it uses the binaries from the existing Termux `cmake` package as its backend, and does not conflict with the `cmake` package.
@robertkirkman
Copy link
Contributor Author

It is installed in $PREFIX/local/lib/python3.12/dist-packages so it will not be found by Termux's python.

Thank you very much, that's right. I think what must have happened is that at first, I originally tested a version that had TERMUX_PKG_SETUP_PYTHON=true in it, but then somehow I accidentally uploaded a version that didn't have TERMUX_PKG_SETUP_PYTHON=true. Luckily, TERMUX_PKG_SETUP_PYTHON=true is what fixes this, and it was just accidentally missing.

@robertkirkman
Copy link
Contributor Author

I will merge this in 24 hours if no problems are found.

@robertkirkman robertkirkman merged commit b4fa6d1 into termux:master Jul 26, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Package]: python-cmake
2 participants