Python_mac.cmake 1.1 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-darwin)
  13. ly_set(LY_PYTHON_PACKAGE_HASH 14a88370fa8673344cf51354ce1a1021a0a1fb1742d774b5a0033a94e3384ec1)
  14. # Python package relative paths
  15. ly_set(LY_PYTHON_BIN_PATH "Python.framework/Versions/Current/bin/")
  16. ly_set(LY_PYTHON_LIB_PATH "Python.framework/Versions/Current/lib")
  17. ly_set(LY_PYTHON_EXECUTABLE "python3")
  18. # Python venv relative paths
  19. ly_set(LY_PYTHON_VENV_BIN_PATH "bin")
  20. ly_set(LY_PYTHON_VENV_LIB_PATH "lib")
  21. ly_set(LY_PYTHON_VENV_SITE_PACKAGES "${LY_PYTHON_VENV_LIB_PATH}/python3.10/site-packages")
  22. ly_set(LY_PYTHON_VENV_PYTHON "${LY_PYTHON_VENV_BIN_PATH}/python")
  23. function(ly_post_python_venv_install venv_path)
  24. # Noop
  25. endfunction()