From dd7db2c1857140c0a610bf4b5e18ab4fa9533078 Mon Sep 17 00:00:00 2001 From: Lucky Verma Date: Fri, 8 May 2026 09:19:57 +0000 Subject: [PATCH] chore(examples): add -S to env shebangs for portability Four examples use the rye shebang without the -S flag: examples/audio.py examples/speech_to_text.py examples/text_to_speech.py examples/realtime/realtime.py CONTRIBUTING.md shows the canonical form as #!/usr/bin/env -S rye run python. Without -S, BSD env (older macOS) treats 'rye run python' as a single program name and fails. This brings these four files in line with the documented canonical form and the other examples that already use -S (e.g. responses/background_streaming.py). --- examples/audio.py | 2 +- examples/realtime/realtime.py | 2 +- examples/speech_to_text.py | 2 +- examples/text_to_speech.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/audio.py b/examples/audio.py index af41fe601b..bee1c66f99 100755 --- a/examples/audio.py +++ b/examples/audio.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python from pathlib import Path diff --git a/examples/realtime/realtime.py b/examples/realtime/realtime.py index 214961e54c..a830e6d2ed 100755 --- a/examples/realtime/realtime.py +++ b/examples/realtime/realtime.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python import asyncio from openai import AsyncOpenAI diff --git a/examples/speech_to_text.py b/examples/speech_to_text.py index cc3f56b424..ed007099c7 100755 --- a/examples/speech_to_text.py +++ b/examples/speech_to_text.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python import asyncio diff --git a/examples/text_to_speech.py b/examples/text_to_speech.py index ac8b12b0ab..1603eb3391 100755 --- a/examples/text_to_speech.py +++ b/examples/text_to_speech.py @@ -1,4 +1,4 @@ -#!/usr/bin/env rye run python +#!/usr/bin/env -S rye run python import time import asyncio