Skip to content

Conversation

mwichmann
Copy link
Collaborator

@mwichmann mwichmann commented Jan 3, 2025

In clarifying the detail on when a builder's target can be deduced, it seemed like the concept of a single-source builder should be introduced in this context. So now those builders we know are single-source have that notation in their entry in this section. Also mentions that pseudo-Builders may have a different calling sequence.

A chunk of text about dependencies previously appeared after the listing of builder methods, where it would be hard to spot. Moved up into the text before the listing, and integrate in a bit more smoothly.

A couple of very minor typing things adjusted along the way - mainly using single_source consistently as a bool.

There are no functional changes, so no test impacts.

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt and RELEASE.txt (and read the README.rst).
  • I have updated the appropriate documentation

@mwichmann mwichmann changed the title Modify the Builder Methods manpage section Manpage: modify the Builder Methods section Jan 3, 2025
When specifying path strings,
&Python; follows the POSIX pathname convention:
if a string begins with the operating system pathname separator
(on Windows both the slash and backslash separator are accepted,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this info included elsewhere in your modified version? (slash and backslash both accepted on windows for dirsep?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Been a while... I think it just felt redundant. Didn't think we needed to be defining what an absolute path is.

@mwichmann
Copy link
Collaborator Author

Grumble tried to update this, now CHANGES and RELEASE have reset for the 4.9 release, and github tells me "fatal: The upstream branch of your current branch does not match the name of your current branch." Dunno what that's about...

@mwichmann
Copy link
Collaborator Author

Hmmm, I remember trying to attach the condensed text versions of the manpage output, but they don't seem to be in this issue. Trying again here:

man-new.txt
man-old.txt

@mwichmann mwichmann force-pushed the doc/builder-methods branch from efe6879 to 7eb0d11 Compare April 7, 2025 19:09
@mwichmann mwichmann added this to 4.10 Apr 10, 2025
@mwichmann mwichmann moved this to In review in 4.10 Apr 10, 2025
@mwichmann mwichmann moved this from In review to In progress in 4.10 May 15, 2025
@mwichmann
Copy link
Collaborator Author

I've marked this as "in progress" on the task board while I figure out what to do.

mwichmann added a commit to mwichmann/scons that referenced this pull request Sep 4, 2025
These are changes harvested from abandoned PR SCons#4671 so they're not lost.
These changes were not the large surgery to doc/man/scons.xml about
builders.  The changes consist of a few formatting changes, moving one
chunk of text i nthe SharedObject doc down ito its own paragraph and
consistently using single_source as a boolean

Signed-off-by: Mats Wichmann <mats@linux.com>
@mwichmann mwichmann removed this from 4.10 Sep 4, 2025
mwichmann added a commit to mwichmann/scons that referenced this pull request Sep 5, 2025
Small changes harvested from abandoned PR SCons#4671 so they're not lost.
These changes omit the large surgery to the Builder Objects section
in doc/man/scons.xml from the PR.  The changes consist of a few doc
formatting changes, entity usage, moving one chunk of text in the
SharedObject entry down ito its own paragraph, noting when a builder is
single source, and, in the code, consistently using the single_source
builder argument as a boolean.

Signed-off-by: Mats Wichmann <mats@linux.com>
In clarifying the detail on when a builder's target can be deduced,
it seemed like the concept of a single-source builder ought to be
introduced in this context. So now those builders we know are
single-source have that notation in their entry in this section.

Also mentions that pseudo-Builders may have a diffeent calling sequence.

A chunk of text about dependencies previously appeared after the
listing of builder methods, where it would be hard to spot. Moved up
into the text before the listing, and integrate in a bit more smoothly.

A couple of very minor typing things adjusted along the way - mainly
using single_source consistently as a bool.

Signed-off-by: Mats Wichmann <mats@linux.com>
mwichmann added a commit to mwichmann/scons that referenced this pull request Sep 9, 2025
This is part of unmerged PR SCons#4671. This change moves two short
sections around:

* The note on builders and dependencies is moved to before the listing
  of methods be consistent with the other three sections of this type:
  all "descriptive text" followed by included generated listing, with
  no text following that.

* The note on debugging user-written builders moves from the
  Builder Methods section to the Builder Objects section, where it
  seems more natural: the need to debug a builder seems a lot less
  likely with the pre-built Builders. Some rewording, as well.

Signed-off-by: Mats Wichmann <mats@linux.com>
@mwichmann
Copy link
Collaborator Author

Withdrawn. Will be resubmitted in smaller chunks as time permits.

@mwichmann mwichmann closed this Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants