[PR #116] [MERGED] feat(plugin-manager): add support for additional Python compileall arguments #320

Closed
opened 2026-02-16 01:15:32 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/116
Author: @dawnwords
Created: 3/18/2025
Status: Merged
Merged: 3/19/2025
Merged by: @Yeuoly

Base: mainHead: feat/python-compileall-extra-args


📝 Commits (2)

  • b16991e feat(plugin-manager): add support for additional Python compileall arguments
  • b3f12fa Merge branch 'langgenius:main' into feat/python-compileall-extra-args

📊 Changes

5 files changed (+50 additions, -33 deletions)

View changed files

📝 internal/core/plugin_manager/launcher.go (+8 -7)
📝 internal/core/plugin_manager/local_runtime/environment_python.go (+7 -1)
📝 internal/core/plugin_manager/local_runtime/type.go (+13 -8)
📝 internal/core/plugin_manager/manager.go (+15 -11)
📝 internal/types/app/config.go (+7 -6)

📄 Description

Introduce pythonCompileAllExtraArgs to allow users to pass extra arguments to the Python compileall command. This enhancement enables more flexible compilation options for plugins by extending the configuration in the plugin manager and local runtime components.

  • Updated launcher.go to include PythonCompileAllExtraArgs in the runtime configuration.
  • Modified environment_python.go to handle the additional compile arguments.
  • Added new configuration fields in type.go and config.go.
  • Adjusted initialization in manager.go to accept the new configuration parameter.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/116 **Author:** [@dawnwords](https://github.com/dawnwords) **Created:** 3/18/2025 **Status:** ✅ Merged **Merged:** 3/19/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/python-compileall-extra-args` --- ### 📝 Commits (2) - [`b16991e`](https://github.com/langgenius/dify-plugin-daemon/commit/b16991eb0d494a72772e806a9237cba3400e7bee) feat(plugin-manager): add support for additional Python compileall arguments - [`b3f12fa`](https://github.com/langgenius/dify-plugin-daemon/commit/b3f12fac1bcfd416b82aef27c26ba89032a03160) Merge branch 'langgenius:main' into feat/python-compileall-extra-args ### 📊 Changes **5 files changed** (+50 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_manager/launcher.go` (+8 -7) 📝 `internal/core/plugin_manager/local_runtime/environment_python.go` (+7 -1) 📝 `internal/core/plugin_manager/local_runtime/type.go` (+13 -8) 📝 `internal/core/plugin_manager/manager.go` (+15 -11) 📝 `internal/types/app/config.go` (+7 -6) </details> ### 📄 Description Introduce `pythonCompileAllExtraArgs` to allow users to pass extra arguments to the Python `compileall` command. This enhancement enables more flexible compilation options for plugins by extending the configuration in the plugin manager and local runtime components. - Updated `launcher.go` to include `PythonCompileAllExtraArgs` in the runtime configuration. - Modified `environment_python.go` to handle the additional compile arguments. - Added new configuration fields in `type.go` and `config.go`. - Adjusted initialization in `manager.go` to accept the new configuration parameter. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:32 -05:00
yindo closed this issue 2026-02-16 01:15:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#320