Skip to content

Add python environment setup script#798

Draft
yunowo wants to merge 2 commits intomainfrom
winpy
Draft

Add python environment setup script#798
yunowo wants to merge 2 commits intomainfrom
winpy

Conversation

@yunowo
Copy link
Copy Markdown
Member

@yunowo yunowo commented Apr 24, 2026

Description

Setup environment variables needed for python bindings for current powershell session.
After setup, you can use gvapython via gst-launch-1.0 or launch pipeline via python script.

Fixes # (issue)

Any Newly Introduced Dependencies

Please describe any newly introduced 3rd party dependencies in this change. List their name, license information and how they are used in the project.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • I agree to use the MIT license for my code changes.
  • I have not introduced any 3rd party components incompatible with MIT.
  • I have not included any company confidential information, trade secret, password or security token.
  • I have performed a self-review of my code.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a PowerShell helper to configure the current Windows PowerShell session for DL Streamer’s Python bindings, and updates Python dependency selection to support Windows via gstreamer-python.

Changes:

  • Add scripts/setup_python_env.ps1 to validate Python/GStreamer availability and set env vars for Python bindings in the current session.
  • Update requirements.txt to use gstreamer-python on Windows and PyGObject on non-Windows platforms.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
scripts/setup_python_env.ps1 New PowerShell script that checks prerequisites and sets PYTHONPATH / GI-related env vars for Python bindings.
requirements.txt Adds platform markers to install gstreamer-python on Windows and PyGObject elsewhere.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/setup_python_env.ps1 Outdated
Comment thread scripts/setup_python_env.ps1 Outdated
Comment thread scripts/setup_python_env.ps1 Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants