Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
236d0b75
Commit
236d0b75
authored
Apr 15, 2019
by
pxinwr
Committed by
Victor Stinner
Apr 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-31904: Don't build the _crypt extension on VxWorks (GH-12833)
parent
2430d532
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
Doc/library/crypt.rst
Doc/library/crypt.rst
+2
-0
Misc/NEWS.d/next/Build/2019-04-15-15-01-29.bpo-31904.38fdkg.rst
...EWS.d/next/Build/2019-04-15-15-01-29.bpo-31904.38fdkg.rst
+1
-0
setup.py
setup.py
+7
-6
No files found.
Doc/library/crypt.rst
View file @
236d0b75
...
...
@@ -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.
.. availability:: Unix. Not available on VxWorks.
Hashing Methods
---------------
...
...
Misc/NEWS.d/next/Build/2019-04-15-15-01-29.bpo-31904.38fdkg.rst
0 → 100644
View file @
236d0b75
Don't build the ``_crypt`` extension on VxWorks.
setup.py
View file @
236d0b75
...
...
@@ -973,17 +973,18 @@ class PyBuildExt(build_ext):
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.
return
if
self
.
compiler
.
find_library_file
(
self
.
lib_dirs
,
'crypt'
):
libs
=
[
'crypt'
]
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment