The easiest way to build OpenVSP and the Python API for a custom version of Python is to fork the GitHub repository and then hack the build.yml file.
At the top, there is a build matrix. It tells GitHub what to build. Change the Python version there and remove everything you don't want to build.
From this:
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.11, 3.13]
os: [ windows-2022, ubuntu-24.04, macos-15-intel, macos-14 ]
exclude:
- os: ubuntu-24.04
python-version: 3.11
include:
- os: ubuntu-24.04
gcc-version: 13
- os: macos-15-intel
llvm-version: 16 # AngelScript won't build on Intel Macs with llvm@17 or newer.
- os: macos-14
llvm-version: 18
steps:
- name: Checkout
uses: actions/checkout@v4
To this:
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.12]
os: [ windows-2022 ]
steps:
- name: Checkout
uses: actions/checkout@v4
Then, name your branch 'build' and push it up to your public fork.
You will need to enable GitHub Actions on your fork.
Then wait about 25 minutes and you'll be able to download a build artifact of the Zip file built with Python 3.12.
You could also install CMake and Visual Studio and everything else on your computer to build it -- but it will certainly take longer that way. If you only want a different Python, this is the way to go.
Rob