gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] packaging help needed


From: Jim Busser
Subject: Re: [Gnumed-devel] packaging help needed
Date: Sat, 29 Aug 2009 09:22:58 -0700

On 29-Aug-09, at 1:48 AM, Gour wrote:

as well as to have the exact list of deps which has to be
fulfilled.

This is rather good timing because I have been considering the same thing. Below is what I found available from which perhaps designations of minimums and maximums and preferred made.

Looking at the binaries, mx and psycopg2 go up to python 2.6, so does PIL, but only for Linux and Win (PIL binaries for Mac going only up to 2.5). Twainmodule (relevant to WIndows) goes only up to 2.5.

Do we know whether the GNUmed client and server will run under Python 2.6 or if the code would need refactoring? If it runs under 2.6 (given 2.6 is current production python) should it Python 2.6 and associated packages that are recommended? Might the wx which corresponds to Python 2.6 ease any of our problems? Does python 2.4.6 remain (for now) acceptable?

Python
=====
http://www.python.org/download/releases/
This is a list of the standard releases, both source and Windows installers. Consider your needs carefully before using a version other than the current production version. The current production versions are 2.6.2 and 3.1.1.

        • Python 3.1.1 (August 16, 2009)
        • Python 3.0.1 (February 13, 2009)
        • Python 2.6.2 (April 14, 2009)
• Python 2.5.4 (December 23, 2008) <-- Mac OS 10.5.x Leopard being natively 2.5.1
        • Python 2.4.6 (December 19, 2008)

**********************************************
3rd party python modules *Package index*:
        see http://pypi.python.org/pypi/
***********************************************

wxPython
========
http://sourceforge.net/projects/wxpython/files/wxPython/
- available: 2.4.2.4 through 2.8.10.1
  … under 2.8.10.1 are listed:
        (Mac): 2.8.10.1 (unicode) available for each of Python 2.4 2.5 2.6
        (Win32): 2.8.10.1 (unicode) available for each of Python 2.4 2.5 2.6
        (Win64): 2.8.10.1 (unicode) available for each of Python 2.5 2.6
        wxPython-src-2.8.10.1.tar.bz2
        wxPython2.8-2.8.10.1-1.src.rpm

Egenix mxdateTime (supplied as part of mxBase)
======================================
http://www.egenix.com/products/python/mxBase/
alt (Mac) http://pythonmac.org/packages/ (but seems outdated)

- available for Pythons 2.3, 2.4, 2.5, 2.6
- each version available in narrow (UCS2) or wide (UCS4) Unicode builds
- Mac OS appears to require UCS2
- Despite that "Most Unixes ship with wide Python builds these days (including RedHat and SuSE), make sure, by running the following command which will tell you what kind of Python installation you have:
        python -c "import sys;print(sys.maxunicode<66000)and'UCS2'or'UCS4'"
... encountering errors (when trying to load an extension from the distribution) such as "unresolved symbol PyUnicodeUCS2_AsEncodedString" suggests a mismatched installation

Psycopg2
========
http://initd.org/pub/software/psycopg/
- lists only
        psycopg2-2.0.11.tar.gz
        psycopg2-2.0.12.tar.gz
- alt (Mac) http://pythonmac.org/packages/py24-fat/mpkg/
        lists: psycopg2-2.0.2-py2.4-macosx10.4.zip
- alt (Mac) http://pythonmac.org/packages/py25-fat/mpkg/
        lists: psycopg2-2.0.5.1-py2.5-macosx10.4.zip
- alt (Mac) http://darwinports.com/
        provides;
          py25-psycopg2 @2.0.9
          py26-psycopg2 @2.0.11
        see also wiki http://wiki.gnumed.de/bin/view/Gnumed/MacPorts

PIL (Python Imaging Library)
=======================
http://effbot.org/zone/pil-index.htm
http://pypi.python.org/pypi/PIL/1.1.6
http://www.pythonware.com/products/pil/

Prebuilt versions of PIL are available in most Linux package repositories

Source:
        Imaging-1.1.7b1.tar.gz
Binaries:
        PIL-1.1.7b1.win32-py2.6.exe [708k] [python 2.6]
        PIL-1.1.7b1.win32-py2.5.exe [694k] [python 2.5]
        PIL-1.1.7a2.win32-py2.6.exe [627k] [python 2.6]
        PIL-1.1.7a2.win32-py2.5.exe [613k] [python 2.5]
        PIL-1.1.7a2.win32-py2.4.exe [612k] [python 2.4]
        PIL-1.1.7a2-py2.5-macosx10.5.mpkg.zip [1191k]
        PIL-1.1.6.win32-py2.6.exe [562k] [python 2.6]
        PIL-1.1.6.win32-py2.5.exe [548k] [python 2.5]
        PIL-1.1.6.win32-py2.4.exe [547k] [python 2.4]

Notes:
        Installation tips for Mac OS X Python
        
http://www.p16blog.com/p16/2008/05/appengine-installing-pil-on-os-x-1053.html
        A hiccup with PIL under Leopard has been described here
        
http://www.oreillynet.com/onlamp/blog/2007/12/pil_on_leopard_or_how_i_made_p.html

Twain/SANE
==========
http://sourceforge.net/projects/twainmodule/
        The Python Twain Module provide an interface to the Microsoft
        Windows TWAIN sub-system. The module implements the full
        TWAIN functionality and supports source specific extensions.
        A TWAIN-explorer is also included.

        http://sourceforge.net/projects/twainmodule/files/
        1.0.3 for Python 2.5
http://twainmodule.sourceforge.net:
        The Python TWAIN module supports 32bit Windows
        only. It does not run on Apple Computer Platforms
        or on UNIX based Platforms. Python versions 2.1
        through 2.5 are supported.


Postgres
======
postgres.org
- 8.4 if creating a new production databases
- else 8.3 is fine bewaring a bug when updating databases to 8.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]