Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
5af7fba6
Kaydet (Commit)
5af7fba6
authored
Ock 03, 2010
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add missing hashlib.h deps.
üst
5812bdf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
setup.py
setup.py
+9
-4
No files found.
setup.py
Dosyayı görüntüle @
5af7fba6
...
...
@@ -606,6 +606,7 @@ class PyBuildExt(build_ext):
# The _hashlib module wraps optimized implementations
# of hash functions from the OpenSSL library.
exts
.
append
(
Extension
(
'_hashlib'
,
[
'_hashopenssl.c'
],
depends
=
[
'hashlib.h'
],
include_dirs
=
ssl_incs
,
library_dirs
=
ssl_libs
,
libraries
=
[
'ssl'
,
'crypto'
])
)
...
...
@@ -617,13 +618,17 @@ class PyBuildExt(build_ext):
min_sha2_openssl_ver
=
0x00908000
if
COMPILED_WITH_PYDEBUG
or
openssl_ver
<
min_sha2_openssl_ver
:
# OpenSSL doesn't do these until 0.9.8 so we'll bring our own hash
exts
.
append
(
Extension
(
'_sha256'
,
[
'sha256module.c'
])
)
exts
.
append
(
Extension
(
'_sha512'
,
[
'sha512module.c'
])
)
exts
.
append
(
Extension
(
'_sha256'
,
[
'sha256module.c'
],
depends
=
[
'hashlib.h'
])
)
exts
.
append
(
Extension
(
'_sha512'
,
[
'sha512module.c'
],
depends
=
[
'hashlib.h'
])
)
if
COMPILED_WITH_PYDEBUG
or
not
have_usable_openssl
:
# no openssl at all, use our own md5 and sha1
exts
.
append
(
Extension
(
'_md5'
,
[
'md5module.c'
])
)
exts
.
append
(
Extension
(
'_sha1'
,
[
'sha1module.c'
])
)
exts
.
append
(
Extension
(
'_md5'
,
[
'md5module.c'
],
depends
=
[
'hashlib.h'
])
)
exts
.
append
(
Extension
(
'_sha1'
,
[
'sha1module.c'
],
depends
=
[
'hashlib.h'
])
)
# Modules that provide persistent dictionary-like semantics. You will
# probably want to arrange for at least one of them to be available on
...
...
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