Schooltool and python2.4
jinty
jinty at web.de
Fri Jan 14 13:36:20 CST 2005
Hi,
I am the debian maintainer of schooltool, I would appreciate it if
someone could apply this patch for schooltool and python 2.4.
It is quite minimal.
(Just please close your eyes to some of the other great big honking
packaging bugs)
Index: schooltool-server.py
===================================================================
--- schooltool-server.py (revision 2435)
+++ schooltool-server.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.4
"""
A script to start the schooltool server from the source directory.
"""
Index: schoolbell-server.py
===================================================================
--- schoolbell-server.py (revision 2435)
+++ schoolbell-server.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.4
"""
A script to start the schooltool server from the source directory.
"""
Index: debian/control
===================================================================
--- debian/control (revision 2435)
+++ debian/control (working copy)
@@ -2,12 +2,12 @@
Section: misc
Priority: extra
Maintainer: Brian Sutherland <jinty at web.de>
-Build-Depends: debhelper (>= 4.1.16), python, python2.3-dev (>= 2.3.2)
+Build-Depends: debhelper (>= 4.1.16), python, python2.4-dev
Standards-Version: 3.6.1
Package: schooltool
Architecture: all
-Depends: ${python:Depends}, python2.3-pyopenssl, python2.3-xml, python2.3-twisted (>= 1.3.0), libxml2-python2.3 (>= 2.6.3-1), python2.3-imaging, ssl-cert, openssl, libschooltool (= ${Source-Version}), ${misc:Depends}
+Depends: ${python:Depends}, python2.4-pyopenssl, python2.4-xml, python2.4-twisted (>= 1.3.0), libxml2-python2.4 (>= 2.6.3-1), python2.4-imaging, ssl-cert, openssl, libschooltool (= ${Source-Version}), ${misc:Depends}
Conflicts: schoolbell, schooltool-server
Replaces: schoolbell, schooltool-server
Recommends: python-tcpwrap (>= 0.2)
@@ -22,7 +22,7 @@
Package: schoolbell
Architecture: all
-Depends: ${python:Depends}, python2.3-pyopenssl, python2.3-xml, python2.3-twisted (>= 1.3.0), libxml2-python2.3 (>= 2.6.3-1), python2.3-imaging, ssl-cert, openssl, libschooltool (= ${Source-Version}), ${misc:Depends}
+Depends: ${python:Depends}, python2.4-pyopenssl, python2.4-xml, python2.4-twisted (>= 1.3.0), libxml2-python2.4 (>= 2.6.3-1), python2.4-imaging, ssl-cert, openssl, libschooltool (= ${Source-Version}), ${misc:Depends}
Conflicts: schooltool
Replaces: schooltool
Recommends: python-tcpwrap (>= 0.2)
@@ -41,7 +41,7 @@
Package: schooltool-clients
Architecture: all
-Depends: ${python:Depends}, python2.3-xml, libxml2-python2.3 (>= 2.6.3-1), libwxgtk2.4-python (>= 2.4.2.4), libschooltool-clients (= ${Source-Version}), ${misc:Depends}
+Depends: ${python:Depends}, python2.4-xml, libxml2-python2.4 (>= 2.6.3-1), libwxgtk2.4-python (>= 2.4.2.4), libschooltool-clients (= ${Source-Version}), ${misc:Depends}
Description: Clients for the Schooltool common platform for school administration
SchoolTool is a project to develop a common global school administration
infrastructure that is freely available under an Open Source licence.
Index: debian/schooltool-client
===================================================================
--- debian/schooltool-client (revision 2435)
+++ debian/schooltool-client (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.3
+#!/usr/bin/python2.4
"""
A script to start the schooltool client in a Debian system.
"""
Index: debian/schoolbell.py
===================================================================
--- debian/schoolbell.py (revision 2435)
+++ debian/schoolbell.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.3
+#!/usr/bin/python2.4
"""
A script to start the SchoolBell server in a Debian system.
"""
Index: debian/rules
===================================================================
--- debian/rules (revision 2435)
+++ debian/rules (working copy)
@@ -219,7 +219,7 @@
dh_strip
dh_compress
dh_fixperms
- dh_python
+ dh_python -V 2.4
dh_makeshlibs
dh_installdeb
dh_shlibdeps
Index: debian/schooltool.py
===================================================================
--- debian/schooltool.py (revision 2435)
+++ debian/schooltool.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.3
+#!/usr/bin/python2.4
"""
A script to start the SchoolTool server in a Debian system.
"""
Index: remove-stale-bytecode.py
===================================================================
--- remove-stale-bytecode.py (revision 2435)
+++ remove-stale-bytecode.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.3
+#!/usr/bin/env python2.4
#
# SchoolTool - common information systems platform for school administration
# Copyright (c) 2003 Shuttleworth Foundation
Index: setup.py
===================================================================
--- setup.py (revision 2435)
+++ setup.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.3
+#!/usr/bin/env python2.4
#
# SchoolTool - common information systems platform for school administration
# Copyright (c) 2003 Shuttleworth Foundation
Index: import-sampleschool.py
===================================================================
--- import-sampleschool.py (revision 2435)
+++ import-sampleschool.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.4
"""
A script to import sample school data into SchoolTool.
"""
Index: schooltool-client.py
===================================================================
--- schooltool-client.py (revision 2435)
+++ schooltool-client.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.4
"""
A script to start the schooltool client from the source directory.
"""
Index: README
===================================================================
--- README (revision 2435)
+++ README (working copy)
@@ -18,8 +18,8 @@
System requirements
-------------------
-- Python 2.3 (http://www.python.org/)
- (Debian users will need both python2.3 and python2.3-xml packages)
+- Python 2.4 (http://www.python.org/)
+ (Debian users will need both python2.4 and python2.4-xml packages)
- libxml2 Python bindings (http://xmlsoft.org/)
@@ -147,16 +147,16 @@
To run all unit tests, do
- python2.3 test.py -pv
+ python2.4 test.py -pv
To run all functional tests, start the SchoolTool server using the test.conf
configuration file (hint: make runtestserver) and then do
- python2.3 test.py -fpv
+ python2.4 test.py -fpv
The test runner has more options and features. To find out about them, do
- python2.3 test.py -h
+ python2.4 test.py -h
Functional tests are are not completely isolated. Some functional tests
create named database state snapshots, while other tests reuse those snapshots
Index: schooltool-grapher.py
===================================================================
--- schooltool-grapher.py (revision 2435)
+++ schooltool-grapher.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.3
+#!/usr/bin/env python2.4
#Boa:App:BoaApp
# SchoolTool - common information systems platform for school administration
Index: test.py
===================================================================
--- test.py (revision 2435)
+++ test.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.3
+#!/usr/bin/env python2.4
#
# SchoolTool - common information systems platform for school administration
# Copyright (c) 2003 Shuttleworth Foundation
Index: generate-sampleschool.py
===================================================================
--- generate-sampleschool.py (revision 2435)
+++ generate-sampleschool.py (working copy)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.4
"""
A script to generate sample school data.
"""
Index: Makefile
===================================================================
--- Makefile (revision 2435)
+++ Makefile (working copy)
@@ -4,8 +4,8 @@
#
# $Id$
-PYTHON=python2.3
-PYTHONDIR=/usr/lib/python2.3
+PYTHON=python2.4
+PYTHONDIR=/usr/lib/python2.4
TESTFLAGS=-w
PO=$(wildcard src/schooltool/translation/*/LC_MESSAGES/*.po)
MO=$(PO:.po=.mo)
--
Brian Sutherland
It's 10 minutes, 5 if you walk fast.
More information about the ubuntu-devel
mailing list