Skip to content

Add -j support - #12

Merged
bdbaddog merged 2 commits into
SCons:masterfrom
bdbaddog:add_cmp_to_compat
Oct 11, 2017
Merged

Add -j support#12
bdbaddog merged 2 commits into
SCons:masterfrom
bdbaddog:add_cmp_to_compat

Conversation

@bdbaddog

@bdbaddog bdbaddog commented Oct 11, 2017

Copy link
Copy Markdown
Contributor

This issue was originally created at: 2001-07-19 22:00:00.
This issue was reported by: stevenknight.
stevenknight said at 2001-07-19 22:00:00

Use the new Job class to support a simple end-to-end -j test.

issues@scons said at 2001-07-25 22:00:00

Converted from SourceForge task item 34796

stevenknight said at 2006-05-20 20:48:13

No white space in keyword.

@timj

timj commented Oct 11, 2017

Copy link
Copy Markdown

The alternative is to follow the Python 3 direction and support a key function instead of cmp.

@bdbaddog

Copy link
Copy Markdown
Contributor Author

@timj - The issue though is we'd break compatibility without SCons' deprecation cycle.

@bdbaddog bdbaddog changed the title Add cmp to SCons.Util as py3 no longer provides it Add cmp to SCons.Util as py3 no longer provides it and fix GenerateHelpText()'s sort parameter functionality Oct 11, 2017
@bdbaddog
bdbaddog merged commit 645e552 into SCons:master Oct 11, 2017
env - an environment that is used to get the current values
of the options.
cmp - Either a function as follows: The specific sort function should take two arguments and return -1, 0 or 1
or a boolean to indicate if it should be sorted.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this might read less awkwardly if reversed: Either True/False to indicate whether to sort using defaults, or the name of a function to use for sorting. The specific sort function should take two arguments and return -1, 0 or 1.

Comment thread src/engine/SCons/Util.py



# No cmp in py3, so we'll define it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

probably don't need the comment since you have the docstring

@mwichmann

Copy link
Copy Markdown
Collaborator

Looks reasonable to me. Left some comments on non-code portions.

@bdbaddog bdbaddog changed the title Add cmp to SCons.Util as py3 no longer provides it and fix GenerateHelpText()'s sort parameter functionality Add -j support Jan 2, 2018
@bdbaddog bdbaddog added the P3 label Jan 2, 2018
bdbaddog added a commit that referenced this pull request Aug 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants