Repository: quantumlib/qsim (language: python)

Issue:
Python test failing due to `distutils` deprecation
python 3.12 [no longer has a distutils package](https://stackoverflow.com/a/76691103), which causes issues in our test workflow. We either need to pin our python version to pre-3.12 or replace our usage of distutils.

Seen in #630 and #631.


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/release_wheels.yml b/.github/workflows/release_wheels.yml
index 9775c09f..292f4dc5 100644
--- a/.github/workflows/release_wheels.yml
+++ b/.github/workflows/release_wheels.yml
@@ -45,6 +45,8 @@ jobs:
 
       # Used to host cibuildwheel
       - uses: actions/setup-python@v2
+        with:
+          python-version: '3.11'
 
       - name: Install cibuildwheel and twine
         run: python -m pip install cibuildwheel==2.12.3


Test patch:
diff --git a/.github/workflows/testing_wheels.yml b/.github/workflows/testing_wheels.yml
index 5ef42431..4d3c1ca3 100644
--- a/.github/workflows/testing_wheels.yml
+++ b/.github/workflows/testing_wheels.yml
@@ -50,6 +50,8 @@ jobs:
 
       # Used to host cibuildwheel
       - uses: actions/setup-python@v2
+        with:
+          python-version: '3.11'
 
       - name: Install cibuildwheel and twine
         run: python -m pip install cibuildwheel==2.12.3