Skip to content

Commit d689883

Browse files
Jammy2211claude
authored andcommitted
fix: conditional optional deps install for Python 3.13 CI
On 3.13, astropy fails to build from source due to removed setuptools.dep_util. Install [optional] extras only on 3.12. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fb2711d commit d689883

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ jobs:
6060
pip3 install setuptools
6161
pip3 install wheel
6262
pip3 install pytest coverage pytest-cov
63-
pip install ./PyAutoConf "./PyAutoFit[optional]"
63+
pip install ./PyAutoConf ./PyAutoFit
64+
if [ "${{ matrix.python-version }}" = "3.12" ]; then
65+
pip install "./PyAutoFit[optional]"
66+
fi
6467
- name: Run tests
6568
run: |
6669
export ROOT_DIR=`pwd`

0 commit comments

Comments
 (0)