Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2016-03-31 16:49:15 +0300
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2016-03-31 16:56:54 +0300
commit8bbf6bbe97cc05be04422a471a2305fe631cd9cf (patch)
tree894414595c5c687736f75fc8cab7a81e4ecef399
parentfdf4235663b8576667300d039b86000da16e0179 (diff)
Fix the windows build crashing during long print by reverting to older python
The new build with python 2.7.6.1 is apparently causing python to crash on long prints according to some users : https://forum.lulzbot.com/viewtopic.php?f=8&t=3636 This patch will revert to using python 2.7.2.1 but still use the newer numpy, pyserial and wxPython 3.0 from the 2.7.6.1 bundle. Since the crash seems to be on the serial comm process, then wxPython and numpy upgrades shouldn't affect it.
-rwxr-xr-xpackage.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/package.sh b/package.sh
index ca98896738..e68a264239 100755
--- a/package.sh
+++ b/package.sh
@@ -38,7 +38,7 @@ GIT_HASH=$(git rev-parse --short=4 HEAD)
export FULL_VERSION=${BUILD_VERSION}-${GIT_HASH}
##Which versions of external programs to use
-WIN_PORTABLE_PY_VERSION=2.7.6.1
+WIN_PORTABLE_PY_VERSION=2.7.2.1
##Which CuraEngine to use
if [ -z ${CURA_ENGINE_REPO:-} ] ; then
@@ -484,6 +484,7 @@ fi
if [ $BUILD_TARGET = "win32" ]; then
#Get portable python for windows and extract it. (Linux and Mac need to install python themselfs)
downloadURL http://ftp.nluug.nl/languages/python/portablepython/v2.7/PortablePython_${WIN_PORTABLE_PY_VERSION}.exe
+ downloadURL http://ftp.nluug.nl/languages/python/portablepython/v2.7/PortablePython_2.7.6.1.exe
downloadURL http://sourceforge.net/projects/pyopengl/files/PyOpenGL/3.0.1/PyOpenGL-3.0.1.win32.exe
downloadURL http://videocapture.sourceforge.net/VideoCapture-0.9-5.zip
#downloadURL http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120927-git-13f0cd6-win32-static.7z
@@ -523,14 +524,19 @@ if [ $BUILD_TARGET = "win32" ]; then
mkdir -p ${TARGET_DIR}/Cura/
mv App/Lib/site-packages/ PURELIB/
mv App/* ${TARGET_DIR}/python
+
+ # Replace Python 2.7.2.1 by 2.7.6.1 so we can grab wx 3.0 and serial 2.7
+ rm -rf App
+ extract PortablePython_2.7.6.1.exe App
+
mkdir -p ${TARGET_DIR}/python/Lib/site-packages/
mv PURELIB/site-packages/setuptools* PURELIB/site-packages/site.py PURELIB/site-packages/easy_install.py ${TARGET_DIR}/python/Lib/site-packages/
mv PURELIB/site-packages/numpy* ${TARGET_DIR}/python/Lib/site-packages/
- mv PURELIB/site-packages/serial* ${TARGET_DIR}/python/Lib/site-packages/
- mv PURELIB/site-packages/pyserial* ${TARGET_DIR}/python/Lib/site-packages/
- mv PURELIB/site-packages/wx* ${TARGET_DIR}/python/Lib/site-packages/
mv PURELIB/OpenGL ${TARGET_DIR}/python/Lib
mv PURELIB/comtypes ${TARGET_DIR}/python/Lib
+ mv App/Lib/site-packages/serial* ${TARGET_DIR}/python/Lib/site-packages/
+ mv App/Lib/site-packages/pyserial* ${TARGET_DIR}/python/Lib/site-packages/
+ mv App/Lib/site-packages/wx* ${TARGET_DIR}/python/Lib/site-packages/
mv Power/power ${TARGET_DIR}/python/Lib
mv VideoCapture-0.9-5/Python27/DLLs/vidcap.pyd ${TARGET_DIR}/python/DLLs
#mv ffmpeg-20120927-git-13f0cd6-win32-static/bin/ffmpeg.exe ${TARGET_DIR}/Cura/