mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Revert "Cleanup old caffe2 scripts (#158475)"
This reverts commit 94d7f0c1ef9a4cb4db0eb5d6b1ffc55941cbeab1. Reverted https://github.com/pytorch/pytorch/pull/158475 on behalf of https://github.com/facebook-github-bot due to Diff reverted internally ([comment](https://github.com/pytorch/pytorch/pull/158475#issuecomment-3085447409))
This commit is contained in:
24
scripts/get_python_cmake_flags.py
Normal file
24
scripts/get_python_cmake_flags.py
Normal file
@ -0,0 +1,24 @@
|
||||
## @package get_python_cmake_flags
|
||||
# Module scripts.get_python_cmake_flags
|
||||
##############################################################################
|
||||
# Use this script to find your preferred python installation.
|
||||
##############################################################################
|
||||
#
|
||||
# You can use the following to build with your preferred version of python
|
||||
# if your installation is not being properly detected by CMake.
|
||||
#
|
||||
# mkdir -p build && cd build
|
||||
# cmake $(python ../scripts/get_python_cmake_flags.py) ..
|
||||
# make
|
||||
#
|
||||
|
||||
|
||||
import sys
|
||||
import sysconfig
|
||||
|
||||
|
||||
flags = [
|
||||
f"-DPython_EXECUTABLE:FILEPATH={sys.executable}",
|
||||
]
|
||||
|
||||
print(" ".join(flags), end="")
|
Reference in New Issue
Block a user