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
4a08ec3d
Kaydet (Commit)
4a08ec3d
authored
Eki 06, 2007
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Backport 58344: allow BerkeleyDB 4.6.x >= 4.6.21 for the bsddb module
üst
c9f22b95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
setup.py
setup.py
+13
-3
No files found.
setup.py
Dosyayı görüntüle @
4a08ec3d
...
@@ -600,10 +600,11 @@ class PyBuildExt(build_ext):
...
@@ -600,10 +600,11 @@ class PyBuildExt(build_ext):
# implementation independent wrapper for these; dumbdbm.py provides
# implementation independent wrapper for these; dumbdbm.py provides
# similar functionality (but slower of course) implemented in Python.
# similar functionality (but slower of course) implemented in Python.
# Sleepycat Berkeley DB interface. http://www.sleepycat.com
# Sleepycat^WOracle Berkeley DB interface.
# http://www.oracle.com/database/berkeley-db/db/index.html
#
#
# This requires the Sleepycat DB code. The supported versions
# This requires the Sleepycat
^WOracle
DB code. The supported versions
# are set below. Visit
http://www.sleepycat.com/
to download
# are set below. Visit
the URL above
to download
# a release. Most open source OSes come with one or more
# a release. Most open source OSes come with one or more
# versions of BerkeleyDB already installed.
# versions of BerkeleyDB already installed.
...
@@ -675,6 +676,15 @@ class PyBuildExt(build_ext):
...
@@ -675,6 +676,15 @@ class PyBuildExt(build_ext):
db_minor
=
int
(
m
.
group
(
1
))
db_minor
=
int
(
m
.
group
(
1
))
db_ver
=
(
db_major
,
db_minor
)
db_ver
=
(
db_major
,
db_minor
)
# Avoid 4.6 prior to 4.6.21 due to a BerkeleyDB bug
if
db_ver
==
(
4
,
6
):
m
=
re
.
search
(
r"#define\WDB_VERSION_PATCH\W(\d+)"
,
f
)
db_patch
=
int
(
m
.
group
(
1
))
if
db_patch
<
21
:
print
"db.h:"
,
db_ver
,
"patch"
,
db_patch
,
print
"being ignored (4.6.x must be >= 4.6.21)"
continue
if
(
(
not
db_ver_inc_map
.
has_key
(
db_ver
))
and
if
(
(
not
db_ver_inc_map
.
has_key
(
db_ver
))
and
(
db_ver
<=
max_db_ver
and
db_ver
>=
min_db_ver
)
):
(
db_ver
<=
max_db_ver
and
db_ver
>=
min_db_ver
)
):
# save the include directory with the db.h version
# save the include directory with the db.h version
...
...
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