Created
February 8, 2017 22:12
-
-
Save guschmue/46584923a486f3c920c5d678534f31f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install cmake 3.6 from here: https://cmake.org/files/v3.6/cmake-3.6.3.zip | |
# install swig 3.0.10 | |
# install anconda3 | |
# install visual studio >= 2015.update3 | |
# | |
set PreferredToolArchitecture=x64 | |
set rel=RelWithDebInfo | |
set cmake_dir=%cd%\tensorflow\contrib\cmake | |
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat" | |
set PY=C:\local\Anaconda3 | |
mkdir cmake_build | |
cd cmake_build | |
cmake %cmake_dir% -A x64 -DCMAKE_BUILD_TYPE=%rel% -DPYTHON_EXECUTABLE=%PY%\python.exe -DPYTHON_LIBRARIES=%PY%\libs\python35.lib -DSWIG_EXECUTABLE=d:\local\swigwin-3.0.10\swig.exe -Dtensorflow_BUILD_PYTHON_TESTS=ON -Dtensorflow_ENABLE_HDFS_SUPPORT=ON %1 | |
MSBuild /p:Configuration=%rel% tf_python_build_pip_package.vcxproj |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment