Python_windows.cmake 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. # Setup the Python global variables and download and associate python to the correct package
  9. # Python package info
  10. ly_set(LY_PYTHON_VERSION 3.10.13)
  11. ly_set(LY_PYTHON_VERSION_MAJOR_MINOR 3.10)
  12. ly_set(LY_PYTHON_PACKAGE_NAME python-3.10.13-rev1-windows)
  13. ly_set(LY_PYTHON_PACKAGE_HASH a6f1fd50552c8780852b75186a97469f77d55d06a01de73e5ca601e4a12be232)
  14. # Python package relative paths
  15. ly_set(LY_PYTHON_BIN_PATH "python")
  16. ly_set(LY_PYTHON_LIB_PATH "Lib")
  17. ly_set(LY_PYTHON_EXECUTABLE "python.exe")
  18. # Python venv relative paths
  19. ly_set(LY_PYTHON_VENV_BIN_PATH "Scripts")
  20. ly_set(LY_PYTHON_VENV_LIB_PATH "Lib")
  21. ly_set(LY_PYTHON_VENV_SITE_PACKAGES "${LY_PYTHON_VENV_LIB_PATH}/site-packages")
  22. ly_set(LY_PYTHON_VENV_PYTHON "${LY_PYTHON_VENV_BIN_PATH}/python.exe")
  23. function(ly_post_python_venv_install venv_path)
  24. # Noop
  25. endfunction()