소스 검색

Add support for free-threaded Python (#2995)

pull/2996/head
Sam Gross 2 년 전
committed by GitHub
부모
커밋
d660c5a84f
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
3개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. +7
    -0
      plugins/python-build/bin/python-build
  2. +2
    -0
      plugins/python-build/share/python-build/3.13t-dev
  3. +2
    -0
      plugins/python-build/share/python-build/3.14t-dev

+ 7
- 0
plugins/python-build/bin/python-build 파일 보기

@ -822,6 +822,7 @@ build_package_standard_build() {
use_homebrew_zlib || true
fi
use_dsymutil || true
use_free_threading || true
fi
( if [ "${CFLAGS+defined}" ] || [ "${!PACKAGE_CFLAGS+defined}" ]; then
@ -1761,6 +1762,12 @@ use_dsymutil() {
fi
}
use_free_threading() {
if [[ -n "$PYTHON_BUILD_FREE_THREADING" ]]; then
package_option python configure --disable-gil
fi
}
build_package_enable_shared() {
package_option python configure --enable-shared
}

+ 2
- 0
plugins/python-build/share/python-build/3.13t-dev 파일 보기

@ -0,0 +1,2 @@
export PYTHON_BUILD_FREE_THREADING=1
source "$(dirname "${BASH_SOURCE[0]}")"/3.13-dev

+ 2
- 0
plugins/python-build/share/python-build/3.14t-dev 파일 보기

@ -0,0 +1,2 @@
export PYTHON_BUILD_FREE_THREADING=1
source "$(dirname "${BASH_SOURCE[0]}")"/3.14-dev

불러오는 중...
취소
저장