mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
windows python 3.14 nightly builds (#159869)
Related to https://github.com/pytorch/pytorch/issues/156856 Pull Request resolved: https://github.com/pytorch/pytorch/pull/159869 Approved by: https://github.com/malfet, https://github.com/williamwen42
This commit is contained in:
parent
5dad5b4f57
commit
62db8ec391
|
|
@ -1,12 +1,22 @@
|
|||
set ADDITIONAL_OPTIONS=""
|
||||
set PYTHON_EXEC="python"
|
||||
|
||||
|
||||
if "%DESIRED_PYTHON%" == "3.13t" (
|
||||
echo Python version is set to 3.13t
|
||||
set "PYTHON_INSTALLER_URL=https://www.python.org/ftp/python/3.13.0/python-3.13.0-amd64.exe"
|
||||
set ADDITIONAL_OPTIONS="Include_freethreaded=1"
|
||||
set PYTHON_EXEC="python3.13t"
|
||||
) else if "%DESIRED_PYTHON%"=="3.14" (
|
||||
echo Python version is set to 3.14 or 3.14t
|
||||
set "PYTHON_INSTALLER_URL=https://www.python.org/ftp/python/3.14.0/python-3.14.0rc1-amd64.exe"
|
||||
) else if "%DESIRED_PYTHON%"=="3.14t" (
|
||||
echo Python version is set to 3.14 or 3.14t
|
||||
set "PYTHON_INSTALLER_URL=https://www.python.org/ftp/python/3.14.0/python-3.14.0rc1-amd64.exe"
|
||||
set ADDITIONAL_OPTIONS="Include_freethreaded=1"
|
||||
set PYTHON_EXEC="python3.14t"
|
||||
) else (
|
||||
echo DESIRED_PYTHON not defined, Python version is set to %DESIRED_PYTHON%
|
||||
echo Python version is set to %DESIRED_PYTHON%
|
||||
set "PYTHON_INSTALLER_URL=https://www.python.org/ftp/python/%DESIRED_PYTHON%.0/python-%DESIRED_PYTHON%.0-amd64.exe" %= @lint-ignore =%
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ call "internal\install_python.bat"
|
|||
|
||||
%PYTHON_EXEC% --version
|
||||
set "PATH=%CD%\Python\Lib\site-packages\cmake\data\bin;%CD%\Python\Scripts;%CD%\Python;%PATH%"
|
||||
if "%DESIRED_PYTHON%" == "3.14t" %PYTHON_EXEC% -m pip install numpy==2.3.2 cmake
|
||||
if "%DESIRED_PYTHON%" == "3.14" %PYTHON_EXEC% -m pip install numpy==2.3.2 cmake
|
||||
if "%DESIRED_PYTHON%" == "3.13t" %PYTHON_EXEC% -m pip install numpy==2.2.1 cmake
|
||||
if "%DESIRED_PYTHON%" == "3.13" %PYTHON_EXEC% -m pip install numpy==2.1.2 cmake
|
||||
if "%DESIRED_PYTHON%" == "3.12" %PYTHON_EXEC% -m pip install numpy==2.0.2 cmake
|
||||
|
|
|
|||
|
|
@ -314,8 +314,8 @@ def generate_wheels_matrix(
|
|||
# TODO: Enable python 3.13t on cpu-s390x
|
||||
if gpu_arch_type == "cpu-s390x" and python_version == "3.13t":
|
||||
continue
|
||||
# TODO: Enable python 3.14 on non linux OSes
|
||||
if os not in ["linux", "linux-aarch64", "macos-arm64"] and (
|
||||
# TODO: Enable python 3.14 for rest
|
||||
if os not in ["linux", "linux-aarch64", "macos-arm64", "windows"] and (
|
||||
python_version == "3.14" or python_version == "3.14t"
|
||||
):
|
||||
continue
|
||||
|
|
|
|||
2370
.github/workflows/generated-windows-binary-wheel-nightly.yml
generated
vendored
2370
.github/workflows/generated-windows-binary-wheel-nightly.yml
generated
vendored
File diff suppressed because it is too large
Load Diff
|
|
@ -23,11 +23,13 @@
|
|||
#include <internal/pycore_frame.h>
|
||||
#if IS_PYTHON_3_14_PLUS
|
||||
#include <internal/pycore_interpframe_structs.h>
|
||||
#endif
|
||||
#if IS_PYTHON_3_14_PLUS && !defined(_WIN32)
|
||||
#include <internal/pycore_stackref.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if IS_PYTHON_3_14_PLUS
|
||||
#if IS_PYTHON_3_14_PLUS && !defined(_WIN32)
|
||||
#include <internal/pycore_code.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -38,11 +40,16 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if IS_PYTHON_3_14_PLUS
|
||||
#if IS_PYTHON_3_14_PLUS && !defined(_WIN32)
|
||||
|
||||
#define F_CODE(x) (PyCodeObject*)PyStackRef_AsPyObjectBorrow(x->f_executable)
|
||||
#define PREV_INSTR(x) (x)->instr_ptr
|
||||
|
||||
#elif IS_PYTHON_3_14_PLUS && defined(_WIN32)
|
||||
|
||||
#define F_CODE(x) ((PyCodeObject*)((x)->f_executable.bits))
|
||||
#define PREV_INSTR(x) (x)->instr_ptr
|
||||
|
||||
#else
|
||||
|
||||
#if IS_PYTHON_3_13_PLUS
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@
|
|||
#include <torch/csrc/dynamo/cpython_includes.h>
|
||||
#include <torch/csrc/dynamo/debug_macros.h>
|
||||
|
||||
#define Py_BUILD_CORE
|
||||
#include <internal/pycore_code.h>
|
||||
#undef Py_BUILD_CORE
|
||||
|
||||
#if IS_PYTHON_3_11_PLUS
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user