This pull request includes several changes aimed at improving the configuration initialization, enhancing logging, and refining post-installation processes. The most important changes are grouped into configuration improvements, logging enhancements, and post-installation refinements.
Configuration Improvements:
oxt/___lo_pip___/config.py: Introduced the get_path_default method to determine the Python executable path more reliably in embedded Python environments. This change replaces the direct use of sys.executable with a more flexible approach. [1][2]
oxt/py_runner.py and oxt/pythonpath/libre_pythonista_lib/py_pip/install_pip_pkg.py: Improved the post-installation process by adding checks to determine if linking is necessary, particularly for Mac and AppImage environments. This includes the addition of the get_needs_linking method to decide if linking is required based on the suffix format. [1][2]
Miscellaneous:
pyproject.toml: Updated the project version from 0.3.0 to 0.3.1.
This pull request includes several changes aimed at improving the configuration initialization, enhancing logging, and refining post-installation processes. The most important changes are grouped into configuration improvements, logging enhancements, and post-installation refinements.
Configuration Improvements:
oxt/___lo_pip___/config.py
: Introduced theget_path_default
method to determine the Python executable path more reliably in embedded Python environments. This change replaces the direct use ofsys.executable
with a more flexible approach. [1] [2]Logging Enhancements:
oxt/___lo_pip___/install/post/cpython_link.py
: Updated the logger initialization to use the class name instead of the module name, enhancing log readability.Post-Installation Refinements:
oxt/py_runner.py
andoxt/pythonpath/libre_pythonista_lib/py_pip/install_pip_pkg.py
: Improved the post-installation process by adding checks to determine if linking is necessary, particularly for Mac and AppImage environments. This includes the addition of theget_needs_linking
method to decide if linking is required based on the suffix format. [1] [2]Miscellaneous:
pyproject.toml
: Updated the project version from0.3.0
to0.3.1
.oxt/___lo_pip___/install/post/cpython_link.py
: Added a missing import statement for future annotations.These changes collectively enhance the reliability, maintainability, and clarity of the codebase.