Skip to content

Commit

Permalink
Minor doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Oct 19, 2023
1 parent 97d137d commit c1a622e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setuptools/command/build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ def get_export_symbols(self, ext):

def _preprocess_and_build(self, ext):
if isinstance(ext, PreprocessedExtension):
target = ext.preprocess(self)
target = ext.preprocess(self) # may be missing build info
updates = self._update_ext_info(target)
target.__dict__.update(updates)
ext.__dict__.update(updates)
ext.__dict__.update(updates) # ... for the sake of consistency ...
else:
target = ext

Expand Down
2 changes: 1 addition & 1 deletion setuptools/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class PreprocessedExtension(Extension):

def preprocess(self, build_ext: BuildExt) -> Extension: # pragma: no cover
"""
The returned ``Extension`` object will be used instead of the
The returned ``Extension`` object will be used instead of the original
``PreprocessedExtension`` object when ``build_ext.build_extension`` runs
(so that ``sources`` and ``dependencies`` can be augmented/replaced with
temporary pre-processed files).
Expand Down

0 comments on commit c1a622e

Please sign in to comment.