Skip to content

Make Exit(), GetLaunchDir() and SConscriptChdir() static#4234

Merged
bdbaddog merged 2 commits into
SCons:masterfrom
abitrolly:static-methods
Sep 15, 2022
Merged

Make Exit(), GetLaunchDir() and SConscriptChdir() static#4234
bdbaddog merged 2 commits into
SCons:masterfrom
abitrolly:static-methods

Conversation

@abitrolly
Copy link
Copy Markdown
Contributor

Continuation of #4224 which is a consequence of #4223

  • Do not initialize DefaultEnvironment when calling EnsureSConsVersion(),
    EnsurePythonVersion(), Exit(), GetLaunchDir() and SConscriptChdir().
  • Remove unused private method SConsEnvironment._exceeds_version().

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 read the README.rst)
  • I have updated the appropriate documentation

@bdbaddog
Copy link
Copy Markdown
Contributor

Doing this would require a deprecation cycle.

@abitrolly
Copy link
Copy Markdown
Contributor Author

For the private method that is not supposed to be exposed?

@bdbaddog
Copy link
Copy Markdown
Contributor

For the private method that is not supposed to be exposed?

Removing those methods from Environment()..

@abitrolly
Copy link
Copy Markdown
Contributor Author

This PR doesn't remove them. Should it start the deprecation cycle now that the docs moved methods into global scope?

@bdbaddog
Copy link
Copy Markdown
Contributor

You are correct. My mistake.

@bdbaddog bdbaddog merged commit e812848 into SCons:master Sep 15, 2022
@abitrolly abitrolly deleted the static-methods branch September 15, 2022 21:26
@mwichmann mwichmann added the maintenance Tasks to maintain internal SCons code/tools label Oct 21, 2022
@mwichmann mwichmann added this to the NextRelease milestone Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Tasks to maintain internal SCons code/tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants