[EVALUATION] - E02 - Support for MinGW Open Source Compiler

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ilias Lazaridis

    #1

    [EVALUATION] - E02 - Support for MinGW Open Source Compiler

    I'm a newcomer to python:

    [EVALUATION] - E01: The Java Failure - May Python Helps?


    -

    I've download (as suggested) the python 2.4 installer for windows.

    Now I have problems to compile python extension that some packages
    depend on.

    I use the MinGW open-source compiler.

    -

    My questions:

    a) Why does the Python Foundation not provide additionally a binary
    version, compiled with MinGW or another open-source compiler?

    b) Why does the Python Foundation not ensure, that the python
    source-code is directly compilable with MinGW?

    c) Why are the following efforts not _directly_ included in the python
    source code base?



    above link found in this thread:



    d) Is it really neccessary that I dive into such adventures, to be able
    to do the most natural thing like: "developing python extensions with
    MinGW"?



    e) Is there any official statement available regarding the msvcr71.dll
    and other MS licensing issues?

    [see several threads "[Python-Dev] Is msvcr71.dll re-redistributable ?"]



    f) Are there any official (Python Foundation) statements / rationales
    available, which explain why the MinGW compiler is unsupported, although
    parts of the community obviously like to use it?



    -

    I just want to understand.

    Thankfull for any pointer to official documents / statements.

    [google is _not_ a fried here. I like to have a stable development
    environment, which is supported by the official projects, thus it can
    pass quality-assurance without beeing afraid about every next release.]

    ..

    --

  • Michael Hoffman

    #2
    Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

    Ilias Lazaridis wrote:
    [color=blue]
    > a) Why does the Python Foundation not provide additionally a binary
    > version, compiled with MinGW or another open-source compiler?[/color]

    I use a binary version of Python compiled with an open-source compiler
    on Windows that was provided by someone else.
    [color=blue]
    > b) Why does the Python Foundation not ensure, that the python
    > source-code is directly compilable with MinGW?[/color]

    Why should they? It already runs on Windows with a freely available
    compiler.
    [color=blue]
    > f) Are there any official (Python Foundation) statements / rationales
    > available, which explain why the MinGW compiler is unsupported, although
    > parts of the community obviously like to use it?[/color]

    Not to my knowledge. But I would guess because supporting it would
    obviously be a lot of work and the core developers have other things to
    do they consider more important. They are volunteers, you know.

    Why don't you solve this problem and produce a patched version of
    Python that does what you want.
    [color=blue]
    > [google is _not_ a fried here. I like to have a stable development
    > environment, which is supported by the official projects, thus it can
    > pass quality-assurance without beeing afraid about every next release.][/color]

    Then you have several options:

    a) use a supported development environment
    b) do the work yourself to support MinGW
    c) pay someone else to do the work

    But don't act like the volunteers who develop Python owe you a version
    of Python that runs out of the box on MinGW. They don't, anymore than you
    owe *me* a version of Python that runs out of the box on MinGW.

    Now why haven't *you* produced a version of Python that is directly
    compileable with MinGW? Time's a-wasting.
    --
    Michael Hoffman

    Comment

    • Miki Tebeka

      #3
      Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

      Hello Ilias,
      [color=blue]
      > d) Is it really neccessary that I dive into such adventures, to be able
      > to do the most natural thing like: "developing python extensions with
      > MinGW"?[/color]
      Writing a setup.py and running
      python setup.py build_ext --compiler=mingw3 2
      works for me *without* any more work. Things can't get much simpler.

      Bye.
      --
      ------------------------------------------------------------------------
      Miki Tebeka <miki.tebeka@zo ran.com>

      The only difference between children and adults is the price of the toys

      Comment

      • Fuzzyman

        #4
        Re: - E02 - Support for MinGW Open Source Compiler


        Ilias Lazaridis wrote:[color=blue]
        > I'm a newcomer to python:
        >
        > [EVALUATION] - E01: The Java Failure - May Python Helps?
        >[/color]
        http://groups-beta.google.com/group/...f0c5c35374f553[color=blue]
        >
        > -
        >
        > I've download (as suggested) the python 2.4 installer for windows.
        >
        > Now I have problems to compile python extension that some packages
        > depend on.
        >
        > I use the MinGW open-source compiler.
        >
        > -
        >
        > My questions:
        >
        > a) Why does the Python Foundation not provide additionally a binary
        > version, compiled with MinGW or another open-source compiler?
        >[/color]

        It's not necessary.
        [color=blue]
        > b) Why does the Python Foundation not ensure, that the python
        > source-code is directly compilable with MinGW?
        >[/color]

        Are you sure it isn't ?
        [color=blue]
        > c) Why are the following efforts not _directly_ included in the[/color]
        python[color=blue]
        > source code base?
        >
        > http://jove.prohosting.com/iwave/ipython/pyMinGW.html
        >
        > above link found in this thread:
        >
        >[/color]
        http://groups-beta.google.com/group/...f0444c467de525[color=blue]
        >
        > d) Is it really neccessary that I dive into such adventures, to be[/color]
        able[color=blue]
        > to do the most natural thing like: "developing python extensions with[/color]
        [color=blue]
        > MinGW"?
        >
        > http://starship.python.net/crew/kern...w32/Notes.html
        >[/color]

        Not very difficult. The mingw compiler *is* supported through
        distutils. distutils can straightforward ly be configured to build
        extensions with mingw. The relevent lib files need converting, which is
        also simple.

        I did it for Python 2.3. For Python 2.4 I use the free MS optimimizing
        compiler. That does need a bit of hacking into distutils, but gain -
        not very difficult.

        Regards,

        Fuzzy
        http://www.voidspace.org.uk/python/index.shtml
        [color=blue]
        > e) Is there any official statement available regarding the[/color]
        msvcr71.dll[color=blue]
        > and other MS licensing issues?
        >
        > [see several threads "[Python-Dev] Is msvcr71.dll[/color]
        re-redistributable ?"][color=blue]
        >
        > http://mail.python.org/pipermail/pyt...ry/thread.html
        >
        > f) Are there any official (Python Foundation) statements / rationales[/color]
        [color=blue]
        > available, which explain why the MinGW compiler is unsupported,[/color]
        although[color=blue]
        > parts of the community obviously like to use it?
        >
        >[/color]
        http://groups-beta.google.com/group/...3474e6c8053336[color=blue]
        >
        > -
        >
        > I just want to understand.
        >
        > Thankfull for any pointer to official documents / statements.
        >
        > [google is _not_ a fried here. I like to have a stable development
        > environment, which is supported by the official projects, thus it can[/color]
        [color=blue]
        > pass quality-assurance without beeing afraid about every next[/color]
        release.][color=blue]
        >
        > .
        >
        > --
        > http://lazaridis.com[/color]

        Comment

        • Ilias Lazaridis

          #5
          Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

          Michael Hoffman wrote:[color=blue]
          > Ilias Lazaridis wrote:
          >[color=green]
          >> a) Why does the Python Foundation not provide additionally a binary
          >> version, compiled with MinGW or another open-source compiler?[/color]
          >
          > I use a binary version of Python compiled with an open-source
          > compiler on Windows that was provided by someone else.[/color]

          Can you please point me (and the readers) to this resource?
          [color=blue][color=green]
          >> b) Why does the Python Foundation not ensure, that the python
          >> source-code is directly compilable with MinGW?[/color]
          >
          > Why should they? It already runs on Windows with a freely available
          > compiler.[/color]

          Obvious: Courtesy [against the userbase needs]

          Obvious: Consistency [same code-base across different compiler]
          [color=blue][color=green]
          >> f) Are there any official (Python Foundation) statements /
          >> rationales available, which explain why the MinGW compiler is
          >> unsupported, although parts of the community obviously like to use
          >> it?[/color]
          >
          > Not to my knowledge.[/color]
          [...] - (guess & comments)

          thank you.
          [color=blue]
          > Why don't you solve this problem and produce a patched version of
          > Python that does what you want.[/color]

          I'm not intrested in patching.

          I'm intrested in a stable environment, supported by the original
          implementors.

          I need a solid fundament for my development.
          [color=blue][color=green]
          >> [google is _not_ a fried here. I like to have a stable development
          >> environment, which is supported by the official projects, thus it
          >> can pass quality-assurance without beeing afraid about every next
          >> release.][/color]
          >
          > Then you have several options:
          >
          > a) use a supported development environment[/color]

          Requirement: "full open-source tool-chain".
          [color=blue]
          > b) do the work yourself to support MinGW[/color]

          this would be not neccessary, as others do this work already.

          My question (that you've ommited) was: why does the python foundation
          not include this efforts?

          [REQUOTE][color=blue][color=green]
          >> c) Why are the following efforts not _directly_ included in the
          >> python source code base?
          >>
          >> http://jove.prohosting.com/iwave/ipython/pyMinGW.html
          >>
          >> above link found in this thread:
          >>
          >> http://groups-beta.google.com/group/...f0444c467de525
          >>[/color][/color]
          [/REQUOTE]
          [color=blue]
          > c) pay someone else to do the work
          >
          > But don't act like the volunteers who develop Python owe you a
          > version of Python that runs out of the box on MinGW. They don't,
          > anymore than you owe *me* a version of Python that runs out of the
          > box on MinGW.[/color]

          I think Python is a serious Open Source System, driven by the Python
          Foundation.

          Serious Open Source Systems should serve the basic needs of their
          community, especially if there are many depending systems.

          If it is a programming language, the requirement "using an open-source
          toolchain" is a rational and valid one.

          The Python Foundation ingores this requirement, this way creating a
          chain of neccessary manual uncontrolled actions.

          This does not increase my trust in python [e.g. as an exchange for JAVA].
          [color=blue]
          > Now why haven't *you* produced a version of Python that is directly
          > compileable with MinGW? Time's a-wasting.[/color]

          I have stated already that I am a newcomer to python.

          [you should really avoid this tenor. Python is not an open-source
          project of a few teenies. It's a serious programming-language, which
          could be adopted by e.g. more phone-manufacturers (after Nokia)]

          -

          The Python Foundation could create an official sub-project to create an
          automated build target based on the MinGW toolchain. I am sure that many
          community members would be more than happy to contribute.

          ..

          --

          Comment

          • Ilias Lazaridis

            #6
            Re: - E02 - Support for MinGW Open Source Compiler

            [please check your news-client. For some reason, the tag "[EVALUATION]"
            was removed]

            -

            You answer essentially something like "It's not necessary" cause "with a
            little hacking it works".

            I've found lots of documents, which describe how to "hack around" to
            make it work.

            I don't want to do "hacking".

            I want to develope large scale applications, and for this I need an
            stable official version of the python language, either binary or
            produced directly out of official sources, completely with an
            open-source tool-chain.

            That's the reason for my very specific questions, which you have mostly
            ignored.

            -

            copied from another answer:

            "The Python Foundation could create an official sub-project to create an
            automated build target based on the MinGW toolchain. I am sure that many
            community members would be more than happy to contribute."

            ..

            --

            Comment

            • Fuzzyman

              #7
              Re: - E02 - Support for MinGW Open Source Compiler


              Ilias Lazaridis wrote:
              [snip..][color=blue][color=green][color=darkred]
              > >> b) Why does the Python Foundation not ensure, that the python
              > >> source-code is directly compilable with MinGW?[/color]
              > >
              > > Why should they? It already runs on Windows with a freely available[/color][/color]
              [color=blue][color=green]
              > > compiler.[/color]
              >
              > Obvious: Courtesy [against the userbase needs]
              >
              > Obvious: Consistency [same code-base across different compiler]
              >[/color]

              Are you aware that the MSVC compiler they use produces tighter code
              than gcc ? [1] *Most* users would rather have a faster python than a
              python built with an open source compiler.

              Particularly as distutils (read Python) can *easily* be configured to
              use mingw to build extensions from source - which seems to be your real
              requirement.

              Regards,

              Fuzzy
              http://www.voidspace.org.uk/python/index.shmtl



              [snip..][color=blue]
              > --
              > http://lazaridis.com[/color]

              [1] Not knocking gcc - it's just optimsied for portability rather than
              speed. If you want to see *a* benchmark, there is a link to one in my
              'upgrading python' article. (In the article section at
              http://www.voidspace.org.uk/python/index.shmtl )

              Comment

              • Michael Hoffman

                #8
                Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

                Ilias Lazaridis wrote:[color=blue]
                > Michael Hoffman wrote:
                >
                > Can you please point me (and the readers) to this resource?[/color]


                [color=blue][color=green]
                >> Why don't you solve this problem and produce a patched version of
                >> Python that does what you want.[/color]
                >
                > I'm not intrested in patching.
                >
                > I'm intrested in a stable environment, supported by the original
                > implementors.[/color]

                And the core developers are not interested in doing more than what they
                have already done without further help (e.g. from you). Surely you can
                "not interested" as you have justified your own inaction through it.
                [color=blue]
                > This does not increase my trust in python [e.g. as an exchange for JAVA].[/color]

                You cannot run all Java programs on an open source compiler, so I guess
                it's an imperfect world for you. And to get GCJ to run on MinGW you have to
                add a lot of patches.
                [color=blue][color=green]
                >> Now why haven't *you* produced a version of Python that is directly
                >> compileable with MinGW? Time's a-wasting.[/color]
                >
                > I have stated already that I am a newcomer to python.
                >
                > [you should really avoid this tenor.[/color]

                And you should avoid yours. Your sense of entitlement is palpable.
                [color=blue]
                > Python is not an open-source project of a few teenies. It's a serious
                > programming-language, which could be adopted by e.g. more
                > phone-manufacturers (after Nokia)][/color]

                The idea that MinGW support would affect that is laughable.
                --
                Michael Hoffman

                Comment

                • Ilias Lazaridis

                  #9
                  Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

                  Miki Tebeka wrote:[color=blue]
                  > Hello Ilias,
                  >[color=green]
                  >>d) Is it really neccessary that I dive into such adventures, to be able
                  >>to do the most natural thing like: "developing python extensions with
                  >>MinGW"?[/color]
                  >
                  > Writing a setup.py and running
                  > python setup.py build_ext --compiler=mingw3 2
                  > works for me *without* any more work. Things can't get much simpler.[/color]

                  looks really simple.

                  -

                  but:

                  the central problem still exists:

                  "** For a Python which was built with Cygwin, all should work without
                  any of these following steps. **"
                  source:


                  -

                  "the problem is that Python binary distributions for MS Windows do not
                  include import libraries for popular gcc based tools: cygwin and mingw32"
                  source: http://www.zope.org/Members/als/tips..._mingw_modules

                  -

                  the solutions is possibly (copied from another answer):

                  "The Python Foundation could create an official sub-project to create an
                  automated build target based on the MinGW toolchain. I am sure that many
                  community members would be more than happy to contribute."

                  ..

                  --

                  Comment

                  • Michael Hoffman

                    #10
                    Re: - E02 - Support for MinGW Open Source Compiler

                    Ilias Lazaridis wrote:
                    [color=blue]
                    > "The Python Foundation could create an official sub-project to create an
                    > automated build target based on the MinGW toolchain. I am sure that many
                    > community members would be more than happy to contribute."[/color]

                    An "official sub-project" for something like this is not necessary. Identify
                    what needs to be done and create a patch, and it will be accepted if it is
                    a good patch.
                    --
                    Michael Hoffman

                    Comment

                    • David Fraser

                      #11
                      Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

                      Ilias Lazaridis wrote:[color=blue]
                      > I'm a newcomer to python:
                      >
                      > [EVALUATION] - E01: The Java Failure - May Python Helps?
                      > http://groups-beta.google.com/group/...f0c5c35374f553
                      >
                      > -
                      >
                      > I've download (as suggested) the python 2.4 installer for windows.
                      >
                      > Now I have problems to compile python extension that some packages
                      > depend on.
                      >
                      > I use the MinGW open-source compiler.
                      >
                      > -
                      >
                      > My questions:
                      >
                      > a) Why does the Python Foundation not provide additionally a binary
                      > version, compiled with MinGW or another open-source compiler?
                      >
                      > b) Why does the Python Foundation not ensure, that the python
                      > source-code is directly compilable with MinGW?
                      >
                      > c) Why are the following efforts not _directly_ included in the python
                      > source code base?
                      >
                      > http://jove.prohosting.com/iwave/ipython/pyMinGW.html
                      >
                      > above link found in this thread:
                      >
                      > http://groups-beta.google.com/group/...f0444c467de525
                      >
                      > d) Is it really neccessary that I dive into such adventures, to be able
                      > to do the most natural thing like: "developing python extensions with
                      > MinGW"?
                      >
                      > http://starship.python.net/crew/kern...w32/Notes.html
                      >
                      > e) Is there any official statement available regarding the msvcr71.dll
                      > and other MS licensing issues?
                      >
                      > [see several threads "[Python-Dev] Is msvcr71.dll re-redistributable ?"]
                      >
                      > http://mail.python.org/pipermail/pyt...ry/thread.html
                      >
                      > f) Are there any official (Python Foundation) statements / rationales
                      > available, which explain why the MinGW compiler is unsupported, although
                      > parts of the community obviously like to use it?
                      >
                      > http://groups-beta.google.com/group/...3474e6c8053336
                      >
                      > -
                      >
                      > I just want to understand.
                      >
                      > Thankfull for any pointer to official documents / statements.
                      >
                      > [google is _not_ a fried here. I like to have a stable development
                      > environment, which is supported by the official projects, thus it can
                      > pass quality-assurance without beeing afraid about every next release.][/color]


                      Just to add to all the other answers:

                      Don't just complain, submit patches and work at keeping them maintained.
                      If this is done for a while it may be more of an argument for having
                      them included

                      David

                      Comment

                      • Diez B. Roggisch

                        #12
                        Re: - E02 - Support for MinGW Open Source Compiler

                        Ilias Lazaridis wrote:
                        [color=blue]
                        > [please check your news-client. For some reason, the tag "[EVALUATION]"
                        > was removed]
                        >
                        > I want to develope large scale applications, and for this I need an
                        > stable official version of the python language, either binary or
                        > produced directly out of official sources, completely with an
                        > open-source tool-chain.[/color]

                        Where does that requirement come from? If you want to create large scale
                        apps, the price for a msvc++ compiler shouldn't matter. And: Windows is a
                        non-free platform at first. If you have to or want to develop on top of it,
                        be prepared to pay. Its as simple as that. If you want something cheaper -
                        you'll have to put some effort into it. Or use linux.

                        Additionally, your point is moot because there is no need for python _core_
                        developers or the foundation to support every imaginable platform/compiler
                        combination. Instead this can be done by companies - see activestate. So if
                        you want it, step up and do it yourself so your work _becomes_ the official
                        mingw port. Community gratitude would be guaranteed.

                        --
                        Regards,

                        Diez B. Roggisch

                        Comment

                        • Ilias Lazaridis

                          #13
                          Re: - E02 - Support for MinGW Open Source Compiler

                          Fuzzyman wrote:[color=blue]
                          > Ilias Lazaridis wrote:
                          > [snip..]
                          >[color=green][color=darkred]
                          >>>>b) Why does the Python Foundation not ensure, that the python
                          >>>>source-code is directly compilable with MinGW?
                          >>>
                          >>>Why should they? It already runs on Windows with a freely available
                          >>>compiler.[/color]
                          >>
                          >>Obvious: Courtesy [against the userbase needs]
                          >>
                          >>Obvious: Consistency [same code-base across different compiler][/color]
                          >
                          > Are you aware that the MSVC compiler they use produces tighter code
                          > than gcc ? [1] *Most* users would rather have a faster python than a
                          > python built with an open source compiler.
                          > Particularly as distutils (read Python) can *easily* be configured to
                          > use mingw to build extensions from source - which seems to be your real
                          > requirement.[/color]

                          This is not relevant.

                          The Python Foundation should just ensure, that the source-code-base is
                          compilable with MinGW on windows, too.

                          This is a very natural requirement.

                          There is really no need to 'fight' against this.

                          There is just a need to cooperate to achieve this.

                          [...][color=blue]
                          > [1] Not knocking gcc - it's just optimsied for portability rather than
                          > speed. If you want to see *a* benchmark, there is a link to one in my
                          > 'upgrading python' article. (In the article section at
                          > http://www.voidspace.org.uk/python/index.shmtl )[/color]

                          ..

                          --

                          Comment

                          • Ilias Lazaridis

                            #14
                            Re: - E02 - Support for MinGW Open Source Compiler

                            Diez B. Roggisch wrote:[color=blue]
                            > Ilias Lazaridis wrote:
                            >[color=green]
                            >> I want to develope large scale applications, and for this I need an
                            >> stable official version of the python language, either binary or
                            >> produced directly out of official sources, completely with an
                            >> open-source tool-chain.[/color]
                            >
                            > Where does that requirement come from? If you want to create large
                            > scale apps, the price for a msvc++ compiler shouldn't matter. And:
                            > Windows is a non-free platform at first. If you have to or want to
                            > develop on top of it, be prepared to pay. Its as simple as that. If
                            > you want something cheaper - you'll have to put some effort into it.
                            > Or use linux.[/color]

                            I will not go into this 'twisting' games.

                            the requirement "Use of an open-source tool-chain" is nothing special.
                            [color=blue]
                            > Additionally, your point is moot because there is no need for python
                            > _core_ developers or the foundation to support every imaginable
                            > platform/compiler combination.[/color]

                            MinGW is not "every imaginable platform/compliler".
                            [color=blue]
                            > Instead this can be done by companies - see activestate. So if you
                            > want it, step up and do it yourself so your work _becomes_ the
                            > official mingw port. Community gratitude would be guaranteed.[/color]

                            I'm not intrested in creating an distribution.

                            I provide an analysis of the situation, context: newcomer, disapointed
                            from JAVA.

                            One of my questions is:

                            [REQUOTE][color=blue][color=green]
                            >> c) Why are the following efforts not _directly_ included in the
                            >> python source code base?
                            >>
                            >> http://jove.prohosting.com/iwave/ipython/pyMinGW.html[/color][/color]
                            [/REQUOTE]

                            ..

                            --

                            Comment

                            • Ilias Lazaridis

                              #15
                              Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

                              David Fraser wrote:[color=blue]
                              > Ilias Lazaridis wrote:[/color]
                              [...][color=blue]
                              > Just to add to all the other answers:
                              >
                              > Don't just complain, submit patches and work at keeping them maintained.
                              > If this is done for a while it may be more of an argument for having
                              > them included[/color]

                              I do not "just complain".

                              I've spend already hours with writing down the questionaire [which you
                              have successfully ignored].

                              ..

                              --

                              Comment

                              Working...