Skip to content

bpo-31904: Add _crypt module support for VxWorks RTOS #12321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Doc/library/crypt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ the :manpage:`crypt(3)` routine in the running system. Therefore, any
extensions available on the current implementation will also be available on
this module.

Note: VxWorks doesn't support this module.

Hashing Methods
---------------

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove crypt module support for VxWorks.
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,12 +980,7 @@ def detect_crypt(self):
else:
libs = []

if not VXWORKS:
self.add(Extension('_crypt', ['_cryptmodule.c'],
libraries=libs))
elif self.compiler.find_library_file(self.lib_dirs, 'OPENSSL'):
libs = ['OPENSSL']
self.add(Extension('_crypt', ['_cryptmodule.c'],
self.add(Extension('_crypt', ['_cryptmodule.c'],
libraries=libs))

def detect_socket(self):
Expand Down Expand Up @@ -1641,7 +1636,8 @@ def detect_modules(self):
if TEST_EXTENSIONS:
self.detect_test_extensions()
self.detect_readline_curses()
self.detect_crypt()
if not VXWORKS:
self.detect_crypt()
self.detect_socket()
self.detect_openssl_hashlib()
self.detect_dbm_gdbm()
Expand Down