> I think we would be wiser to make the standard script one for python 2.6 
because of the problems with python 2.7

Just before opening an issue, what do you think? (see attached)

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


diff -r 75469058c464 scripts/setup-web2py-nginx-uwsgi-on-centos.sh
--- a/scripts/setup-web2py-nginx-uwsgi-on-centos.sh	Tue Jan 29 16:27:46 2013 -0600
+++ b/scripts/setup-web2py-nginx-uwsgi-on-centos.sh	Wed Jan 30 13:32:00 2013 -0300
@@ -12,7 +12,13 @@
 #               available at your Centos package repository.
 #               This change was made in order to get the latest
 #               stable libraries available for avoiding compatibility
-#               issues.
+#
+#               A bug was reported for the 2.7.3 version of python
+#               here http://bugs.python.org/issue14572
+#               in case you choose to change to VERSION=2.7
+#               (see below) mind that the automatic patch applied
+#               could not work for your environment. By default,
+#               Python 2.6 is installed.
 #
 #               It was originally posted in this web2py-users group
 #               thread: https://groups.google.com/forum/?fromgroups#
@@ -29,7 +35,7 @@
 #               This is needed for the nginx installation.
 #
 #        File : setup-web2py-nginx-uwsgi-on-centos.sh
-#      Author : Hutchinson
+#      Author : Peter Hutchinson
 # Modified by : Alan Etkin
 #       Email : [email protected]
 #   Copyright : web2py
@@ -56,8 +62,8 @@
 # to fit your deployment needs.
 
 # Python options
-PREFIX=2.7
-VERSION=2.7.3
+PREFIX=2.6
+VERSION=2.6.8
 
 # uWSGI options
 version=uwsgi-1.2.4
@@ -71,8 +77,10 @@
 tar xvfz Python-$VERSION.tgz
 cd Python-$VERSION
 
-echo "Applying patch for sqlite3 bug from post http://bugs.python.org/msg161076";
-curl -sk https://raw.github.com/gist/2727063/ | patch -p1
+if [ "$VERSION" == "2.7.3" ]; then
+  echo "Applying patch for sqlite3 bug from post http://bugs.python.org/msg161076";
+  curl -sk https://raw.github.com/gist/2727063/ | patch -p1
+fi
 
 ./configure --prefix=/opt/python$PREFIX --with-threads --enable-shared
 make

Reply via email to