Google Groupes n'accepte plus les nouveaux posts ni abonnements Usenet. Les contenus de l'historique resteront visibles.

migc.pyd please help me!

10 vues
Accéder directement au premier message non lu

nightdriver

non lue,
29 janv. 2003, 05:15:0829/01/2003
à
I repost because no one reply to me.
========================================

Hi there,
i am in search of a mingc.pyd for the latest windows release of phyton
anybody can point me to url that contain this (or send it to me).

Please help me i've searched to compile the module by myself but under
windows compile with gcc/mingw32 is UGLY.

Thanks,
nightdrv

Chris Gonnerman

non lue,
29 janv. 2003, 08:05:5829/01/2003
à
----- Original Message -----
From: "nightdriver" <night...@bolt.com>


> I repost because no one reply to me.
> ========================================

Probably because none of us have heard of mingc. What
is it, where do you get it, etc.? (I could google for
it, but if you want an answer on USENET you are expected
to make it easy to give.)

> Hi there,
> i am in search of a mingc.pyd for the latest windows release of phyton
> anybody can point me to url that contain this (or send it to me).
>
> Please help me i've searched to compile the module by myself but under
> windows compile with gcc/mingw32 is UGLY.
>
> Thanks,
> nightdrv

Chris Gonnerman -- chris.g...@newcenturycomputers.net
http://newcenturycomputers.net

Gerhard Häring

non lue,
29 janv. 2003, 11:04:1329/01/2003
à
nightdriver <night...@bolt.com> wrote:
> I repost because no one reply to me.

Ok, to stop you asking ...

> Hi there,
> i am in search of a mingc.pyd for the latest windows release of phyton
> anybody can point me to url that contain this (or send it to me).
>
> Please help me i've searched to compile the module by myself but under
> windows compile with gcc/mingw32 is UGLY.

Don't you insult my mingw!!!1 In fact, this is quite easy if you RTFM for
distutils. No, you don't need to mess with the ming Makefiles *at all*.

And no, I won't just build a binary and send it to you, because that hasn't
much pedagogic value :-P

So here it goes:

Prerequisites: you've installed mingw toolchain and built the import library
for Python [1].

1) Download and unzip the ming [2] sources
2) cd into src/ and do a "make static"
3) copy the following distutils setup.py file into py_ext/

#----------------8<----------------------------------------------------
from distutils.core import setup
from distutils.extension import Extension

setup ( name = "ming",
version = "0.2a",
description = "A library for creating Shockwave files.",
py_modules = ["ming"],
ext_modules = [Extension( name='mingc',
sources=['ming_wrap.c'],
include_dirs=[".."],
library_dirs=["../src"],
libraries=["ming"]
)]
)
#----------------8<----------------------------------------------------

4) cd into py_ext/ and issue "python setup.py build --compiler=mingw32"

5) if you want to create an installer, issue "python setup.py bdist_wininst"

Now you have a Windows installer for the Python ming wrapper under dist. The
whole thing took me about five minutes, but I confess this isn't the first
setup.py I hacked.

But if you want to create a Python extension, crafting your own setup.py is
always easier than messing with Makefiles.

Anyways, in exchange, could you polish this setup.py a little (add copyright,
author, author_email and so on fields) and send a patch to the ming maintainer?
I myself can't be bothered any longer with this because I don't use ming and am
not at all interested in Shockwave, Flash and their likes.

building-ming-with-mingw-ly yours,

Gerhard

[1] http://www.python.org/doc/current/inst/non-ms-compilers.html
[2] http://ming.sf.net/

Gerhard Häring

non lue,
29 janv. 2003, 11:06:0429/01/2003
à
nightdriver <night...@bolt.com> wrote:
> I repost because no one reply to me.

Ok, to prevent an endless chain of reposts ... ;-)

> Hi there,
> i am in search of a mingc.pyd for the latest windows release of phyton
> anybody can point me to url that contain this (or send it to me).
>
> Please help me i've searched to compile the module by myself but under
> windows compile with gcc/mingw32 is UGLY.

Don't you insult my mingw!!!1 In fact, this is quite easy if you RTFM for

nightdriver

non lue,
30 janv. 2003, 05:00:2030/01/2003
à
Thanks for reading and of course replying.

Sorry i dont want to "insult" mingw32 but i tried to compile 20 times
and i came up only with garbage errors (sure cause of me :)).

Well i will try the route you suggest seems different from my
approach, in my test i have to heavy modify headers for mingc
wrappers.

Thanks,
nightdrv

Gerhard Häring <gerhard...@opus-gmbh.net> wrote in message news:<slrnb3fusl.1d4....@haering.opus-gmbh.net>...

nightdriver

non lue,
30 janv. 2003, 07:36:0630/01/2003
à
Gerhard MUCHO THANKS !

It works great ! My objective was to run svg2swf.py and it works.

> Anyways, in exchange, could you polish this setup.py a little (add copyright,
> author, author_email and so on fields) and send a patch to the ming maintainer?

did'nt think it is better to send to mantainer the mingc.pyd ??

Again thanks,
nightdrv

Gerhard Häring <gerhard...@opus-gmbh.net> wrote in message news:<slrnb3fusl.1d4....@haering.opus-gmbh.net>...

Gerhard Häring

non lue,
30 janv. 2003, 08:56:4030/01/2003
à
nightdriver <night...@bolt.com> wrote:
> Gerhard MUCHO THANKS !
>
> It works great ! My objective was to run svg2swf.py and it works.

I'm glad it worked for you.

>> Anyways, in exchange, could you polish this setup.py a little (add
>> copyright, author, author_email and so on fields) and send a patch to
>> the ming maintainer?
>
> did'nt think it is better to send to mantainer the mingc.pyd ??

What you want is the build process for the Python wrapper to be more
accessible, right? To achieve this you'll have to send in the setup.py.

Binaries may be convenient, but they suffer bitrot - I believe the Makefile
still assumed Python 1.5.2. With a setup.py, anybody with a supported C
compiler an build the ming library. Not only will this make the build
process on Windows easier, but also on Unixen where you currently need to
hack the Makefile as well. Plus, a source patch will create a new version
of ming when one comes out and will still work with Python 2.3. And Python
1.5 to 2.2, for that matter ;-)

Of course you can send the maintainer the distutils generated installer
(python setup.py bdist_wininst) to put on her web page as well. Or you can
simply put it on *your* homepage :-)
--
Gerhard Häring
OPUS GmbH München
Tel.: +49 89 - 889 49 7 - 32
http://www.opus-gmbh.net/

0 nouveau message