Skip to content

Use shlex.join. NFC #24111

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
Apr 18, 2025
Merged

Use shlex.join. NFC #24111

merged 1 commit into from
Apr 18, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 15, 2025

We bumped the minimum python version to 3.8 in #23417. I guess I overlooked this change at the time.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

lgtm % question

test/common.py Outdated
@@ -1400,7 +1400,7 @@ def build(self, filename, libraries=None, includes=None, force_c=False, emcc_arg
output = output_basename + output_suffix
else:
output = shared.unsuffixed_basename(filename) + output_suffix
cmd = compiler + [filename, '-o', output] + self.get_emcc_args(main_file=True)
cmd = compiler + [str(filename), '-o', output] + self.get_emcc_args(main_file=True)
Copy link
Member

Choose a reason for hiding this comment

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

Why is this change needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The official shlex.join only accepts strings and not Path objects. Our version had the call to os.fspath in it.

We bumped the minimum python version to 3.8 in emscripten-core#23417.  I guess I
overlooked this change at the time.
@sbc100 sbc100 enabled auto-merge (squash) April 17, 2025 18:38
@sbc100 sbc100 disabled auto-merge April 18, 2025 00:41
@sbc100 sbc100 merged commit 4f5a63b into emscripten-core:main Apr 18, 2025
25 of 28 checks passed
@sbc100 sbc100 deleted the shlex_join branch April 18, 2025 00:41
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.

2 participants