Mailing List Archive

bpo-31904: remove libnet dependency from detect_socket() for VxWorks (GH-23394)
https://github.com/python/cpython/commit/00a6568ba37f0d815289776a51af46d0eac27384
commit: 00a6568ba37f0d815289776a51af46d0eac27384
branch: master
author: pxinwr <peixing.xin@windriver.com>
committer: miss-islington <31488909+miss-islington@users.noreply.github.com>
date: 2020-11-28T14:14:16-08:00
summary:

bpo-31904: remove libnet dependency from detect_socket() for VxWorks (GH-23394)



Previously on VxWorks compiling socket extension module needs the libnet to link. Now VxWorks has moved the replied functions to libc. So removing libnet from setup.py.

files:
A Misc/NEWS.d/next/Build/2020-11-19-17-01-50.bpo-31904.894dk2.rst
M setup.py

diff --git a/Misc/NEWS.d/next/Build/2020-11-19-17-01-50.bpo-31904.894dk2.rst b/Misc/NEWS.d/next/Build/2020-11-19-17-01-50.bpo-31904.894dk2.rst
new file mode 100644
index 0000000000000..d1ec647ed343e
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2020-11-19-17-01-50.bpo-31904.894dk2.rst
@@ -0,0 +1 @@
+remove libnet dependency from detect_socket() for VxWorks
diff --git a/setup.py b/setup.py
index 398d9251a6c41..b7a7d26c5325b 100644
--- a/setup.py
+++ b/setup.py
@@ -1132,11 +1132,7 @@ def detect_crypt(self):
def detect_socket(self):
# socket(2)
kwargs = {'depends': ['socketmodule.h']}
- if VXWORKS:
- if not self.compiler.find_library_file(self.lib_dirs, 'net'):
- return
- kwargs['libraries'] = ['net']
- elif MACOS:
+ if MACOS:
# Issue #35569: Expose RFC 3542 socket options.
kwargs['extra_compile_args'] = ['-D__APPLE_USE_RFC_3542']


_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins