Skip to content
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

ExternalProgram: add cmd_array to complete the offering #13845

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dabrain34
Copy link
Contributor

@dabrain34 dabrain34 commented Oct 30, 2024

In case of python and especially in the case of pyInstaller where the python command is meson.exe runpython, it should not be full path to be used but cmd_array.

Fixing #13834

@dabrain34 dabrain34 requested a review from jpakkane as a code owner October 30, 2024 14:56
@dabrain34 dabrain34 changed the title ExternalProgram: add full_command to complete the offfering ExternalProgram: add full_command to complete the offering Oct 30, 2024
@dabrain34 dabrain34 force-pushed the dab_full_command branch 2 times, most recently from acbc84e to 2c13517 Compare October 31, 2024 09:44
@dabrain34 dabrain34 changed the title ExternalProgram: add full_command to complete the offering ExternalProgram: add cmd_array to complete the offering Oct 31, 2024
- name: cmd_array
returns: list[str]
description: Returns an array containing the command(s) for the program.
since: 1.6.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New API is for 1.7.0

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need a release snippet, add a file in docs/markdown/snippets/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give me more details on the expected snippet please ?

@xclaesse
Copy link
Member

xclaesse commented Nov 1, 2024

Should we deprecate full_path() because it's dangerous? At least document that cmd_array() is prefered.

@xclaesse
Copy link
Member

xclaesse commented Nov 1, 2024

A unit test would be nice too.

@dabrain34
Copy link
Contributor Author

Added a unit test

@dabrain34 dabrain34 force-pushed the dab_full_command branch 3 times, most recently from 729b344 to 1cd5775 Compare November 7, 2024 09:29
In case of python and especially in the case of pyInstaller
where the python command is meson.exe runpython, it should
not be full path to be used but cmd_array.

Fixing mesonbuild#13834
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.

4 participants