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
ffd5d886
Kaydet (Commit)
ffd5d886
authored
Ock 03, 2010
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make setup.py similar to py3k's when reporting on _hashlib as missing or not.
üst
6dcdcde2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
setup.py
setup.py
+14
-12
No files found.
setup.py
Dosyayı görüntüle @
ffd5d886
...
...
@@ -657,19 +657,22 @@ class PyBuildExt(build_ext):
#print 'openssl_ver = 0x%08x' % openssl_ver
min_openssl_ver
=
0x00907000
have_
usable_openssl
=
(
ssl_incs
is
not
None
and
ssl_libs
is
not
None
and
have_
any_openssl
=
ssl_incs
is
not
None
and
ssl_libs
is
not
None
have_usable_openssl
=
(
have_any_openssl
and
openssl_ver
>=
min_openssl_ver
)
if
have_usable_openssl
:
# The _hashlib module wraps optimized implementations
# of hash functions from the OpenSSL library.
exts
.
append
(
Extension
(
'_hashlib'
,
[
'_hashopenssl.c'
],
include_dirs
=
ssl_incs
,
library_dirs
=
ssl_libs
,
libraries
=
[
'ssl'
,
'crypto'
])
)
# these aren't strictly missing since they are unneeded.
#missing.extend(['_sha', '_md5'])
if
have_any_openssl
:
if
have_usable_openssl
:
# The _hashlib module wraps optimized implementations
# of hash functions from the OpenSSL library.
exts
.
append
(
Extension
(
'_hashlib'
,
[
'_hashopenssl.c'
],
include_dirs
=
ssl_incs
,
library_dirs
=
ssl_libs
,
libraries
=
[
'ssl'
,
'crypto'
])
)
else
:
print
(
"warning: openssl 0x
%08
x is too old for _hashlib"
%
openssl_ver
)
missing
.
append
(
'_hashlib'
)
if
COMPILED_WITH_PYDEBUG
or
not
have_usable_openssl
:
# The _sha module implements the SHA1 hash algorithm.
exts
.
append
(
Extension
(
'_sha'
,
[
'shamodule.c'
])
)
...
...
@@ -679,7 +682,6 @@ class PyBuildExt(build_ext):
exts
.
append
(
Extension
(
'_md5'
,
sources
=
[
'md5module.c'
,
'md5.c'
],
depends
=
[
'md5.h'
])
)
missing
.
append
(
'_hashlib'
)
min_sha2_openssl_ver
=
0x00908000
if
COMPILED_WITH_PYDEBUG
or
openssl_ver
<
min_sha2_openssl_ver
:
...
...
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