NatLabRockies / NatLabRockies/OpenStudio
Upgrade initializiation of PythonEngine to use PyConfig
Open
Nobody has claimed this yet.
component - Python bindings
Enhancement Request
- Dominant language
- C++
- Stars
- 646
- Forks
- 237
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 10
Description
Enhancement Request
I had a TODO for this for a while
Py_SetPath was actually removed from 3.13 API
cf https://github.com/NREL/OpenStudio/commit/998e13ea881b9f8a3eae3581ef478ce556ff3677
Detailed Description
https://docs.python.org/3/whatsnew/3.13.html
Possible Implementation
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in python/engine/PythonEngine.cpp at the TODO around lines 74–75, then read the Python 3.13 PyConfig initialization documentation and the linked commit. Replace the removed Py_SetPath-based initialization with PyConfig usage, and confirm PythonEngine initializes correctly with the supported Python API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100