cmake source tarballs and zips contain Tests/Server/cmakelib.pyc
Affects 3.8.0-rc4.
Compiled python should never be included in a source tarball, as it's system-dependent.
Possible fix (completely untested and possibly mistaken):
--- a/CMakeCPackOptions.cmake.in
+++ b/CMakeCPackOptions.cmake.in
@@ -214,6 +214,9 @@ if(CPACK_GENERATOR MATCHES "CygwinSource")
"/CVS/" "/\\.build/" "/\\.svn/" "\\.swp$" "\\.#" "/#" "~$")
endif()
+# Never include compile python (e.g. Tests/Server/cmakelib.pyc)
+LIST(APPEND CPACK_SOURCE_IGNORE_FILES "\\.pyc$")
+
if("${CPACK_GENERATOR}" STREQUAL "PackageMaker")
if(CMAKE_PACKAGE_QTGUI)
set(CPACK_PACKAGE_DEFAULT_LOCATION "/Applications")