GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Emscripten: Make python.sh function as proper Python CLI · Issue #127503 · python/cpython

Emscripten: Make python.sh function as proper Python CLI #127503

New issue
Copy link
New issue
Copy link
Closed
#127506
Closed
Emscripten: Make python.sh function as proper Python CLI#127503
#127506
Copy link
Labels
OS-emscriptentype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@hoodmane
hoodmane
opened on Dec 2, 2024
Issue body actions

There are several problems with python.sh right now:

  1. It doesn't work correctly on macs with bsd coreutils
  2. It doesn't mount the native file system into the Emscripten file system, so python.sh /some/file.py will fail to find the file
  3. It doesn't set the current directory in the Emscripten file system to the same as the host working directory so python.sh file.py won't look for file.py in the current directory
  4. It doesn't inherit environment variables

@freakboy3742

Linked PRs

  • gh-127503: Emscripten make Python.sh function as proper Python CLI #127506
  • gh-127503: Fix realpath handling in emscripten cli #127632
  • gh-127503 Don't propagate native PATH to Emscripten Python #127633
  • gh-127503: Improve tracebacks on Emscripten when there is a trap #131158

Activity

  1. hoodmane
    changed the title [-]Emscripten: Make python.sh function as a proper CLI entrypoint[/-] [+]Emscripten: Make python.sh function as proper Python CLI[/+] on Dec 2, 2024
  2. hoodmane
    added
    OS-emscripten
    on Dec 2, 2024
  3. picnixz
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Dec 2, 2024
  4. freakboy3742
    added a commit that references this issue on Dec 5, 2024

    gh-127503: Emscripten make Python.sh function as proper Python CLI (#…

    87faf0a
  5. freakboy3742
    closed this as completedin #127506on Dec 5, 2024
  6. hoodmane
    reopened this on Dec 5, 2024
  7. hoodmane
    added 2 commits that reference this issue on Dec 5, 2024

    pythongh-127503: Fix realpath handling in emscripten cli

    73fe44b

    pythongh-127503 Don't propagate native PATH to Emscripten Python

    a7afdf9
  8. freakboy3742
    added 2 commits that reference this issue on Dec 9, 2024

    gh-127503 Don't propagate native PATH to Emscripten Python (#127633)

    5876063

    gh-127503: Fix realpath handling in emscripten cli (#127632)

    d8d12b3
  9. hoodmane
    closed this as completedon Dec 11, 2024
  10. srinivasreddy
    added 3 commits that reference this issue on Jan 8, 2025

    pythongh-127503: Emscripten make Python.sh function as proper Python …

    6c4b1ca

    pythongh-127503 Don't propagate native PATH to Emscripten Python (pyt…

    3c4647f

    pythongh-127503: Fix realpath handling in emscripten cli (python#127632)

    e0253e4
  11. hoodmane
    added 3 commits that reference this issue on Mar 12, 2025

    pythongh-127503: Improve tracebacks on Emscripten when there is a trap

    490c765

    pythongh-127503: Improve tracebacks on Emscripten when there is a trap

    f173d1f

    pythongh-127503: Improve tracebacks on Emscripten when there is a trap

    19a197c
  12. freakboy3742
    added a commit that references this issue on Mar 13, 2025

    gh-127503: Improve tracebacks on Emscripten when there is a trap (#13…

    db1e582
  13. plashchynski
    added a commit that references this issue on Mar 17, 2025

    pythongh-127503: Improve tracebacks on Emscripten when there is a trap (

    23c17ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-emscriptentype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.