mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 08:14:10 +03:00
Check GIL, rather than Python version (#124)
This commit is contained in:
commit
77e752f35f
|
@ -38,7 +38,7 @@ python3 -m pip install pyroma
|
||||||
|
|
||||||
if [[ $(uname) != CYGWIN* ]]; then
|
if [[ $(uname) != CYGWIN* ]]; then
|
||||||
# TODO Update condition when NumPy supports free-threading
|
# TODO Update condition when NumPy supports free-threading
|
||||||
if [[ "$GHA_PYTHON_VERSION" == "3.13-dev" ]]; then
|
if [[ "$PYTHON_GIL" == "0" ]]; then
|
||||||
python3 -m pip install numpy --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
|
python3 -m pip install numpy --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
|
||||||
else
|
else
|
||||||
python3 -m pip install numpy
|
python3 -m pip install numpy
|
||||||
|
@ -48,7 +48,7 @@ if [[ $(uname) != CYGWIN* ]]; then
|
||||||
if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
|
if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
|
||||||
sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
|
sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
|
||||||
# TODO Update condition when pyqt6 supports free-threading
|
# TODO Update condition when pyqt6 supports free-threading
|
||||||
if ! [[ "$GHA_PYTHON_VERSION" == "3.13-dev" ]]; then python3 -m pip install pyqt6 ; fi
|
if ! [[ "$PYTHON_GIL" == "0" ]]; then python3 -m pip install pyqt6 ; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Pyroma uses non-isolated build and fails with old setuptools
|
# Pyroma uses non-isolated build and fails with old setuptools
|
||||||
|
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -67,7 +67,7 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
if: "!endsWith(matrix.python-version, '-dev')"
|
if: "${{ !matrix.disable-gil }}"
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
allow-prereleases: true
|
allow-prereleases: true
|
||||||
|
@ -78,7 +78,7 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }} (free-threaded)
|
- name: Set up Python ${{ matrix.python-version }} (free-threaded)
|
||||||
uses: deadsnakes/action@v3.1.0
|
uses: deadsnakes/action@v3.1.0
|
||||||
if: endsWith(matrix.python-version, '-dev')
|
if: "${{ matrix.disable-gil }}"
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
nogil: ${{ matrix.disable-gil }}
|
nogil: ${{ matrix.disable-gil }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user