Python 3.3 coming soon?

Ryan Johnson ryan.johnson@cs.utoronto.ca
Mon Oct 14 14:17:00 GMT 2013


Hi python maintainer,

Is there any chance to get a build of python 3.3 on x86_64? (I need PEP 
380, delegating to a subgenerator, and the Windows version doesn't play 
nice with cygwin shells). I tried downloading the sources and applying 
the patches mentioned in the .cygport file for the cygwin python 3.2 
source distribution, but make fails with:

./Modules/signalmodule.c: In function ‘fill_siginfo’:
./Modules/signalmodule.c:745:60: error: ‘siginfo_t’ has no member named 
‘si_band’
PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));
^
Include/tupleobject.h:62:75: note: in definition of macro ‘PyTuple_SET_ITEM’
#define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
^
./Modules/signalmodule.c:745:5: note: in expansion of macro 
‘PyStructSequence_SET_ITEM’
PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));
^

NOTES:

  * Google turned up several other reports of the same error message,
    going back as far as python 2.6 for cygwin, but all the workarounds
    seem to have been fixed in older versions upstream, and/or fix other
    problems that had no obvious link with si_band (such as using
    ncursesw instead of ncurses).
  * I don't have (or know how to use) cygport, so maybe it would be as
    simple as changing $VERSION in the .cygport file.


Detailed steps I followed:

 1. Download python 3.3.2 source from python.org
 2. Download the cygwin python 3.2 source package using setup.exe, along
    with binaries for all dependencies (gettext, python3-tkinter, etc.)
 3. Apply the following patches (as specified in the .cygport):
    3.0b3-tkinter.patch
    3.0rc3-ctypes-util-find_library.patch
    3.1-enable-new-dtags.patch
    3.1-ncurses-abi6.patch
    3.1-PATH_MAX.patch
    3.1-ssl-threads.patch
    3.2-ctypes-libpython.patch
    3.2-cygwin-soname.patch
    3.2-dbm.patch
    3.2-distutils-shlibext.patch
    3.2-export-PyNode_SizeOf.patch
    3.2-export-PySignal_SetWakeupFd.patch
    3.2-format-parsetuple.patch
    3.2-pep3149.patch
    3.2-thread-cygwin64.patch
    CVE-2013-4238-py32.patch
    uuid.patch
 4. autoreconf -i
 5. ./configure CPPFLAGS="-I/usr/include/ncursesw"
    --prefix=$HOME/apps/python-3.3.2 --enable-shared --enable-ipv6
    --with-libc= --with-libm= --with-system-expat --with-system-ffi
    ac_cv_func_bind_textdomain_codeset=yes
 6. make -k

Thoughts?
Ryan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list