Commit e4ef5357 authored by Bastien Jacquet's avatar Bastien Jacquet
Browse files

Bump python to pre-build binaries

parent 0e6f49a4
set (configuration)
set (python_executable_dir)
if (64bit_build)
set (configuration "Release|x64")
set (python_executable_dir
"${SuperBuild_BINARY_DIR}/python/src/python/PCbuild/amd64")
else()
set (configuration "Release|Win32")
set (python_executable_dir
"${SuperBuild_BINARY_DIR}/python/src/python/PCbuild")
endif()
#------------------------------------------------------------------------------
# in the following build commands, we use devenv explicitly since the generator
# the user has chosen could be nmake, in which case CMAKE_BUILD_TOOL is not the
# right tool. Since devenv is in the path in the nmake build environment as well
# as VS environment, we can safely call it.
add_external_project_or_use_system(python
add_external_project(python
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ${DEVENV_PATH} PCbuild/pcbuild.sln /build ${configuration}
/project python
#devenv doesn't seem to building all specified projects when I list them in
#same command line. So making them separate calls.
# We need to copy pyconfig.h from PC/ to Include.
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_if_different
<SOURCE_DIR>/PC/pyconfig.h
<SOURCE_DIR>/Include/pyconfig.h
)
#------------------------------------------------------------------------------
set (python_projects_to_build
select
make_versioninfo
make_buildinfo
kill_python
w9xpopen
pythoncore
_socket
_testcapi
_msi
_elementtree
_ctypes_test
_ctypes
winsound
pyexpat
_multiprocessing
pythonw
unicodedata
)
foreach(dep IN LISTS python_projects_to_build)
add_external_project_step(python-project-${dep}
COMMAND ${DEVENV_PATH} <SOURCE_DIR>/PCbuild/pcbuild.sln /build ${configuration}
/project ${dep}
DEPENDEES build
DEPENDERS install)
endforeach()
#------------------------------------------------------------------------------
set (pv_python_executable "${python_executable_dir}/python.exe")
add_extra_cmake_args(
-DPYTHON_EXECUTABLE:FILEPATH=${python_executable_dir}/python.exe
-DPYTHON_INCLUDE_DIR:FILEPATH=${SuperBuild_BINARY_DIR}/python/src/python/Include
-DPYTHON_LIBRARY:FILEPATH=${python_executable_dir}/python27.lib)
BUILD_COMMAND ""
INSTALL_COMMAND
"${CMAKE_COMMAND}"
"-Dinstall_dir:PATH=<INSTALL_DIR>"
-P "${CMAKE_CURRENT_LIST_DIR}/python.install.cmake")
\ No newline at end of file
foreach (dir bin include lib share)
file(GLOB files "${dir}/*")
file(INSTALL ${files}
DESTINATION "${install_dir}/${dir}")
endforeach ()
\ No newline at end of file
......@@ -9,13 +9,23 @@
# endif()
if (WIN32)
if (64bit_build)
add_revision(python
URL "http://www.paraview.org/files/dependencies/python+deps.tar.bz2"
URL_MD5 "4318b8f771eda5606d9ce7f0be9f82e1")
else ()
add_revision(python
URL "http://www.paraview.org/files/dependencies/python+deps-x32.tar.bz2"
URL_MD5 "6ba441784a672e08379d23ddd61146f0")
endif ()
elseif (CROSS_BUILD_STAGE STREQUAL "CROSS")
add_revision(python
URL "http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz"
URL_MD5 "2cf641732ac23b18d139be077bd906cd")
URL "http://www.paraview.org/files/dependencies/Python-2.7.3_CMake-7d1eb56.tar.bz2"
URL_MD5 "48121a265837f825b1136ca8cf9bc4cd")
else()
add_revision(python
URL "http://paraview.org/files/v3.98/dependencies/Python-2.7.2.tgz"
URL_MD5 "0ddfe265f1b3d0a8c2459f5bf66894c7")
URL "http://paraview.org/files/dependencies/Python-2.7.11.tgz"
URL_MD5 "6b6076ec9e93f05dd63e47eb9c15728b")
endif()
add_revision(qt
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment