mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Remove deprecation warnings on old 'link_*()' methods, ie. they're not
deprecated after all. But now they're only implemented once, instead of N times.
This commit is contained in:
parent
4240648a9d
commit
264cf74e1a
1 changed files with 5 additions and 11 deletions
|
@ -621,7 +621,7 @@ class CCompiler:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|
||||||
# old methods, rewritten to use the new link() method.
|
# Old 'link_*()' methods, rewritten to use the new 'link()' method.
|
||||||
|
|
||||||
def link_shared_lib (self,
|
def link_shared_lib (self,
|
||||||
objects,
|
objects,
|
||||||
|
@ -635,8 +635,6 @@ class CCompiler:
|
||||||
extra_preargs=None,
|
extra_preargs=None,
|
||||||
extra_postargs=None,
|
extra_postargs=None,
|
||||||
build_temp=None):
|
build_temp=None):
|
||||||
self.warn("link_shared_lib(..) is deprecated, please "
|
|
||||||
"use link(CCompiler.SHARED_LIBRARY, ...) instead")
|
|
||||||
self.link(CCompiler.SHARED_LIBRARY, objects,
|
self.link(CCompiler.SHARED_LIBRARY, objects,
|
||||||
self.library_filename(output_libname, lib_type='shared'),
|
self.library_filename(output_libname, lib_type='shared'),
|
||||||
output_dir,
|
output_dir,
|
||||||
|
@ -657,8 +655,6 @@ class CCompiler:
|
||||||
extra_preargs=None,
|
extra_preargs=None,
|
||||||
extra_postargs=None,
|
extra_postargs=None,
|
||||||
build_temp=None):
|
build_temp=None):
|
||||||
self.warn("link_shared_object(...) is deprecated, please "
|
|
||||||
"use link(CCompiler.SHARED_OBJECT,...) instead.")
|
|
||||||
self.link(CCompiler.SHARED_OBJECT, objects,
|
self.link(CCompiler.SHARED_OBJECT, objects,
|
||||||
output_filename, output_dir,
|
output_filename, output_dir,
|
||||||
libraries, library_dirs, runtime_library_dirs,
|
libraries, library_dirs, runtime_library_dirs,
|
||||||
|
@ -676,12 +672,10 @@ class CCompiler:
|
||||||
debug=0,
|
debug=0,
|
||||||
extra_preargs=None,
|
extra_preargs=None,
|
||||||
extra_postargs=None):
|
extra_postargs=None):
|
||||||
self.warn("link_executable(...) is deprecated, please "
|
self.link(CCompiler.EXECUTABLE, objects,
|
||||||
"use link(CCompiler.EXECUTABLE,...) instead.")
|
self.executable_filename(output_progname), output_dir,
|
||||||
self.link (CCompiler.EXECUTABLE, objects,
|
libraries, library_dirs, runtime_library_dirs, None,
|
||||||
self.executable_filename(output_progname), output_dir,
|
debug, extra_preargs, extra_postargs, None)
|
||||||
libraries, library_dirs, runtime_library_dirs, None,
|
|
||||||
debug, extra_preargs, extra_postargs, None)
|
|
||||||
|
|
||||||
|
|
||||||
# -- Miscellaneous methods -----------------------------------------
|
# -- Miscellaneous methods -----------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue