Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8017 > unrolled thread

Re: Compiling Python 3.2 on Cygwin fails

Started bysewpafly <sewpafly@gmail.com>
First post2011-06-20 09:44 -0700
Last post2011-07-05 10:25 -0400
Articles 4 — 3 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Compiling Python 3.2 on Cygwin fails sewpafly <sewpafly@gmail.com> - 2011-06-20 09:44 -0700
    Re: Compiling Python 3.2 on Cygwin fails Aly Tawfik <aly.tawfik@gmail.com> - 2011-07-04 12:44 -0700
    Re: Compiling Python 3.2 on Cygwin fails Aly Tawfik <aly.tawfik@gmail.com> - 2011-07-04 12:49 -0700
      Re: Compiling Python 3.2 on Cygwin fails David Robinow <drobinow@gmail.com> - 2011-07-05 10:25 -0400

#8017 — Re: Compiling Python 3.2 on Cygwin fails

Fromsewpafly <sewpafly@gmail.com>
Date2011-06-20 09:44 -0700
SubjectRe: Compiling Python 3.2 on Cygwin fails
Message-ID<0a6de4fa-aa64-4485-a6da-72cf1bdad739@m9g2000yqe.googlegroups.com>
I was able to a little further by changing 2 lines in Makefile.pre.in.

On line 170, changed:
    DLLLIBRARY=	@DLLLIBRARY@
to:
    DLLLIBRARY=	libpython$(VERSION).dll

On line 509 it had:
    $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)

which I changed to:
    $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)

Compile finishes with:
Python build finished, but the necessary bits to build these modules
were not found:
_gdbm              _sqlite3           _tkinter
nis                ossaudiodev        spwd
To find the necessary bits, look in setup.py in detect_modules() for
the module's name.


Failed to build these modules:
_curses            _curses_panel


But 'make test' returns many errors.

I'm thinking I'll try Python 3.1 instead.

[toc] | [next] | [standalone]


#8788

FromAly Tawfik <aly.tawfik@gmail.com>
Date2011-07-04 12:44 -0700
Message-ID<8759432d-6b53-4021-8992-2213624762f0@u30g2000vby.googlegroups.com>
In reply to#8017
On Jun 20, 12:44 pm, sewpafly <sewpa...@gmail.com> wrote:
> I was able to a little further by changing 2 lines in Makefile.pre.in.
>
> On line 170, changed:
>     DLLLIBRARY= @DLLLIBRARY@
> to:
>     DLLLIBRARY= libpython$(VERSION).dll
>
> On line 509 it had:
>     $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
>
> which I changed to:
>     $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
>
> Compile finishes with:
> Python build finished, but the necessary bits to build these modules
> were not found:
> _gdbm              _sqlite3           _tkinter
> nis                ossaudiodev        spwd
> To find the necessary bits, look in setup.py in detect_modules() for
> the module's name.
>
> Failed to build these modules:
> _curses            _curses_panel
>
> But 'make test' returns many errors.
>
> I'm thinking I'll try Python 3.1 instead.



Yes! I am facing the same problem. I, too, will try to install Python
3.1.4 instead. Did it work for you?

[toc] | [prev] | [next] | [standalone]


#8789

FromAly Tawfik <aly.tawfik@gmail.com>
Date2011-07-04 12:49 -0700
Message-ID<4e40b036-e232-45d5-be9d-b9019fe4b414@gh5g2000vbb.googlegroups.com>
In reply to#8017
On Jun 20, 12:44 pm, sewpafly <sewpa...@gmail.com> wrote:
> I was able to a little further by changing 2 lines in Makefile.pre.in.
>
> On line 170, changed:
>     DLLLIBRARY= @DLLLIBRARY@
> to:
>     DLLLIBRARY= libpython$(VERSION).dll
>
> On line 509 it had:
>     $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
>
> which I changed to:
>     $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
>
> Compile finishes with:
> Python build finished, but the necessary bits to build these modules
> were not found:
> _gdbm              _sqlite3           _tkinter
> nis                ossaudiodev        spwd
> To find the necessary bits, look in setup.py in detect_modules() for
> the module's name.
>
> Failed to build these modules:
> _curses            _curses_panel
>
> But 'make test' returns many errors.
>
> I'm thinking I'll try Python 3.1 instead.

I, too, am facing the same problem. Which version of Python 3.1 did
you install, and did it work? Thanks!

[toc] | [prev] | [next] | [standalone]


#8830

FromDavid Robinow <drobinow@gmail.com>
Date2011-07-05 10:25 -0400
Message-ID<mailman.631.1309875917.1164.python-list@python.org>
In reply to#8789
On Mon, Jul 4, 2011 at 3:49 PM, Aly Tawfik <aly.tawfik@gmail.com> wrote:
> On Jun 20, 12:44 pm, sewpafly <sewpa...@gmail.com> wrote:
>> I was able to a little further by changing 2 lines in Makefile.pre.in.
>>
>> On line 170, changed:
>>     DLLLIBRARY= @DLLLIBRARY@
>> to:
>>     DLLLIBRARY= libpython$(VERSION).dll
>>
>> On line 509 it had:
>>     $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
>>
>> which I changed to:
>>     $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
>>
>> Compile finishes with:
>> Python build finished, but the necessary bits to build these modules
>> were not found:
>> _gdbm              _sqlite3           _tkinter
>> nis                ossaudiodev        spwd
>> To find the necessary bits, look in setup.py in detect_modules() for
>> the module's name.
>>
>> Failed to build these modules:
>> _curses            _curses_panel
>>
>> But 'make test' returns many errors.
>>
>> I'm thinking I'll try Python 3.1 instead.
>
> I, too, am facing the same problem. Which version of Python 3.1 did
> you install, and did it work? Thanks!
> --
> http://mail.python.org/mailman/listinfo/python-list
>

 Cygwin is not really a supported platform. Reverting to Python 3.1
won't help at all. Download the 2.6.5 source version (i.e., click the
Src box) using cygwin setup. Apply the included patches [some don't
apply cleanly any more]. That will get you most of the way there.
There are a few other issues the details of which I don't remember.
 I'm not sure why there hasn't been a cygwin distribution lately. You
might ask on the cygwin mailing list. [Ultimately somebody with an
interest in cygwin will need to get active in python development. I've
been meaning to do this but life gets in the way.]
  DR

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web