diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-06-24 15:57:06 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-06-24 16:02:26 +0100 |
| commit | 965458d1d271553d25f431ffebdb68bd12938f9a (patch) | |
| tree | 5b5628ac6f29cd1e3a42acdc7a7fa193f85772be /setuptools/command | |
| parent | fdd9ab363a88665b3678c661721c073f19982737 (diff) | |
| download | python-setuptools-git-965458d1d271553d25f431ffebdb68bd12938f9a.tar.gz | |
Revert addition of use_links to build_lib
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/build_ext.py | 2 | ||||
| -rw-r--r-- | setuptools/command/build_py.py | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index 31ef47bf..7ad5a87a 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -104,7 +104,7 @@ class build_ext(_build_ext): # Always copy, even if source is older than destination, to ensure # that the right extensions for the current Python/platform are # used. - build_py.copy_file(regular_file, inplace_file) + self.copy_file(regular_file, inplace_file, level=self.verbose) if ext._needs_stub: inplace_stub = self._get_equivalent_stub(ext, inplace_file) diff --git a/setuptools/command/build_py.py b/setuptools/command/build_py.py index a2a6fe2c..923a3232 100644 --- a/setuptools/command/build_py.py +++ b/setuptools/command/build_py.py @@ -40,17 +40,15 @@ class build_py(orig.build_py): if 'data_files' in self.__dict__: del self.__dict__['data_files'] self.__updated_files = [] - self.use_links = None def copy_file(self, infile, outfile, preserve_mode=1, preserve_times=1, link=None, level=1): # Overwrite base class to allow using links - link = getattr(self, "use_links", None) if link is None else link if link: infile = str(Path(infile).resolve()) outfile = str(Path(outfile).resolve()) - return super().copy_file(infile, outfile, preserve_mode, - preserve_times, link, level) + return super().copy_file(infile, outfile, preserve_mode, preserve_times, + link, level) def run(self): """Build modules, packages, and copy data files to build directory""" |
