mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45847: Port _crypt to PY_STDLIB_MOD (GH-29725)
This commit is contained in:
parent
f840398a5f
commit
095bc8f0d6
4 changed files with 268 additions and 63 deletions
15
setup.py
15
setup.py
|
@ -1241,20 +1241,7 @@ class PyBuildExt(build_ext):
|
|||
self.missing.append('_curses_panel')
|
||||
|
||||
def detect_crypt(self):
|
||||
# crypt module.
|
||||
if VXWORKS:
|
||||
# bpo-31904: crypt() function is not provided by VxWorks.
|
||||
# DES_crypt() OpenSSL provides is too weak to implement
|
||||
# the encryption.
|
||||
self.missing.append('_crypt')
|
||||
return
|
||||
|
||||
if self.compiler.find_library_file(self.lib_dirs, 'crypt'):
|
||||
libs = ['crypt']
|
||||
else:
|
||||
libs = []
|
||||
|
||||
self.add(Extension('_crypt', ['_cryptmodule.c'], libraries=libs))
|
||||
self.addext(Extension('_crypt', ['_cryptmodule.c']))
|
||||
|
||||
def detect_dbm_gdbm(self):
|
||||
# Modules that provide persistent dictionary-like semantics. You will
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue