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


Groups > comp.lang.python > #197353

Re: Python recompile

From antispam@fricas.org (Waldek Hebisch)
Newsgroups comp.lang.c, comp.lang.python
Subject Re: Python recompile
Date 2025-03-06 19:21 +0000
Organization To protect and to server
Message-ID <vqcsk7$23bfo$1@paganini.bofh.team> (permalink)
References (10 earlier) <vq6ips$1pmnk$2@dont-email.me> <vq6j5h$1qosf$1@dont-email.me> <20250304092827.708@kylheku.com> <vq7g1p$1vmg5$1@dont-email.me> <vq94dt$2boso$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


In comp.lang.c Muttley@dastardlyhq.org wrote:
> On Tue, 4 Mar 2025 18:16:25 +0000
> bart <bc@freeuk.com> wibbled:
>>The CPython source bundle doesn't come with any makefiles. The first 
>>step appears to be to run a 35,000-line 'configure' script. Part of its 
> 
> Frankly any build system that has a 35K configure file needs revisiting.
> No package is so complex as to require that much setup. OS specific code
> should be dealt with some appropriate ifdefs in the source and libraries
> and linking should be a few 10s of lines.
> 
> Back in the day packages used to hve different preprepared Makefiles for
> each system they could build on and IME that tended to work a lot better
> than configure scripts that tried to figure things out on the fly.

I remember times when source package came with README file saying
edit this and that to configure for your system.  Typically one
had to edit Makefile and possibly something like config.h.  For
me it worked quite well.  But those times are gone.  Most people
now do not know essential information about system they use, so
are unable to provide sensible values.  And modern programs are
bigger and more complicated, so such hand editing is too much work
for rare people capable of doing this.

Per platform Makefile-s do not scale when one wants to support
multiple system and multiple configurations (there is exponential
growth of possible combinations).  And even of single configuration
for supposedly single system like Linux there are troubles.
In one project there was someting like 20 Makefile.linux_x files
where x represented one Linux flavour.  Yet regularly somebody
would come and say: "build fails on my Linux x.y.z".  If enough
information was provided new Makefile was added, or possibly
some similar Makefile was modified to cover more cases.
Those troubles mostly vanished when project switched to configure
script.  Now there is about 1500 lines of hand written code
in configure machinery (biggest is 933 lines long configure.ac)
and 8564 lines long generated configure script.  Most build
troubles is now gone or diagnosed early.

Writing "diagnosed early" I mean that most user errors are
detected quite early.  For example, a lot of people try to
compile program without having a C compiler.  And when they
have compiler they fail to install needed libraries (there
is list which says what is needed but people fail to follow
instructions).

It is certainly silly when generated configure file is much
bigger than actual program code.  This happens frequently
when lazy or brainwashed folks use automake (which apparently
puts all checks that it knows into generated configure.ac).
But Python have reasons to check for a lot of things, so
the size is somewhat reasonable.

-- 
                              Waldek Hebisch

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Python recompile doctor@doctor.nl2k.ab.ca (The Doctor) - 2025-03-02 14:35 +0000
  Re: Python recompile Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2025-03-02 15:54 +0000
    Re: Python recompile Muttley@dastardlyhq.com - 2025-03-02 16:58 +0000
      Re: Python recompile Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2025-03-02 17:08 +0000
        Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 08:14 +0000
      Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-02 12:30 -0500
        Re: Python recompile scott@slp53.sl.home (Scott Lurndal) - 2025-03-02 18:35 +0000
        Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 08:13 +0000
          Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 08:31 +0000
            Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 10:44 +0000
              Re: Python recompile bart <bc@freeuk.com> - 2025-03-03 12:20 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 15:03 +0000
              Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 12:47 +0000
          Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-03 10:22 -0500
            Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 16:19 +0000
            Re: Python recompile geodandw <geodandw@gmail.com> - 2025-03-03 11:24 -0500
              Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 16:26 +0000
              Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-03 11:39 -0500
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-03 16:56 +0000
                Re: Python recompile David Brown <david.brown@hesbynett.no> - 2025-03-03 18:22 +0100
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 08:31 +0000
                Re: Python recompile Kaz Kylheku <643-408-1753@kylheku.com> - 2025-03-04 17:28 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 17:25 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 08:32 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 08:56 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 09:23 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 09:57 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 10:03 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 10:25 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 11:19 +0000
                Re: Python recompile Kaz Kylheku <643-408-1753@kylheku.com> - 2025-03-04 17:42 +0000
                Re: Python recompile bart <bc@freeuk.com> - 2025-03-04 18:16 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-05 09:10 +0000
                Re: Python recompile antispam@fricas.org (Waldek Hebisch) - 2025-03-06 19:21 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-07 09:53 +0000
                Re: Python recompile Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-07 21:26 +0000
                Re: Python recompile bart <bc@freeuk.com> - 2025-03-07 21:33 +0000
                Re: Python recompile antispam@fricas.org (Waldek Hebisch) - 2025-03-10 14:39 +0000
                Re: Python recompile Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-06 03:16 +0000
                Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-04 19:12 -0500
                Re: Python recompile gazelle@shell.xmission.com (Kenny McCormack) - 2025-03-03 23:42 +0000
                Re: Python recompile geodandw <geodandw@gmail.com> - 2025-03-03 13:29 -0500
                Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-03 16:52 -0500
              Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 17:19 +0000
                Re: Python recompile geodandw <geodandw@gmail.com> - 2025-03-03 13:33 -0500
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 19:15 +0000
                Re: Python recompile geodandw <geodandw@gmail.com> - 2025-03-03 18:51 -0500
                Re: Python recompile Kaz Kylheku <643-408-1753@kylheku.com> - 2025-03-04 00:49 +0000
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 02:29 +0000
                Re: Python recompile David Brown <david.brown@hesbynett.no> - 2025-03-04 09:12 +0100
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-04 11:33 +0000
                Re: Python recompile Muffley@DinkyHQ.org - 2025-03-04 12:00 +0000
                Re: Python recompile Michael S <already5chosen@yahoo.com> - 2025-03-04 15:31 +0200
              Re: Python recompile David Brown <david.brown@hesbynett.no> - 2025-03-03 18:28 +0100
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-04 08:33 +0000
                Re: Python recompile Kaz Kylheku <643-408-1753@kylheku.com> - 2025-03-04 18:06 +0000
              Re: Python recompile Stuart Redmann <DerTopper@web.de> - 2025-03-06 07:35 +0100
                Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-06 07:32 +0000
                Re: Python recompile Muttley@DastardlyHQ.org - 2025-03-06 08:39 +0000
                Re: Python recompile "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-03-06 12:40 -0800
                Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-07 13:17 -0500
          Re: Python recompile doctor@doctor.nl2k.ab.ca (The Doctor) - 2025-03-03 16:12 +0000
    Re: Python recompile Left Right <olegsivokon@gmail.com> - 2025-03-02 23:26 +0100
  Re: Python recompile antispam@fricas.org (Waldek Hebisch) - 2025-03-02 17:54 +0000
    Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-02 19:15 +0000
    Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-02 13:38 -0500
      Re: Python recompile doctor@doctor.nl2k.ab.ca (The Doctor) - 2025-03-03 00:42 +0000
        Re: Python recompile doctor@doctor.nl2k.ab.ca (The Doctor) - 2025-03-03 00:46 +0000
        Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-02 22:24 -0500
      Re: Python recompile antispam@fricas.org (Waldek Hebisch) - 2025-03-03 17:20 +0000
        Re: Python recompile Richard Heathfield <rjh@cpax.org.uk> - 2025-03-03 17:28 +0000
        Re: Python recompile James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-03-03 12:57 -0500
        Re: Python recompile scott@slp53.sl.home (Scott Lurndal) - 2025-03-03 18:02 +0000
        Re: Python recompile bart <bc@freeuk.com> - 2025-03-03 19:37 +0000
  Re: Python recompile (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-04 05:46 +0000

csiph-web