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
c1ce2860
Kaydet (Commit)
c1ce2860
authored
Ara 06, 2008
tarafından
Skip Montanaro
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
issue 4483 - _dbm build failures on systems with gdbm_compat lib.
üst
008d8ef1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
NEWS
Misc/NEWS
+3
-0
_dbmmodule.c
Modules/_dbmmodule.c
+3
-0
setup.py
setup.py
+14
-5
No files found.
Misc/NEWS
Dosyayı görüntüle @
c1ce2860
...
@@ -25,6 +25,9 @@ Core and Builtins
...
@@ -25,6 +25,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #4483: _dbm module now builds on systems with gdbm & gdbm_compat
libs.
- Issue #4542: On Windows, binascii.crc32 still accepted str as binary input;
- Issue #4542: On Windows, binascii.crc32 still accepted str as binary input;
the corresponding tests now pass.
the corresponding tests now pass.
...
...
Modules/_dbmmodule.c
Dosyayı görüntüle @
c1ce2860
...
@@ -21,6 +21,9 @@ static char *which_dbm = "GNU gdbm"; /* EMX port of GDBM */
...
@@ -21,6 +21,9 @@ static char *which_dbm = "GNU gdbm"; /* EMX port of GDBM */
#elif defined(HAVE_GDBM_NDBM_H)
#elif defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#include <gdbm/ndbm.h>
static
char
*
which_dbm
=
"GNU gdbm"
;
static
char
*
which_dbm
=
"GNU gdbm"
;
#elif defined(HAVE_GDBM_DASH_NDBM_H)
#include <gdbm-ndbm.h>
static
char
*
which_dbm
=
"GNU gdbm"
;
#elif defined(HAVE_BERKDB_H)
#elif defined(HAVE_BERKDB_H)
#include <db.h>
#include <db.h>
static
char
*
which_dbm
=
"Berkeley DB"
;
static
char
*
which_dbm
=
"Berkeley DB"
;
...
...
setup.py
Dosyayı görüntüle @
c1ce2860
...
@@ -783,11 +783,20 @@ class PyBuildExt(build_ext):
...
@@ -783,11 +783,20 @@ class PyBuildExt(build_ext):
exts
.
append
(
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
exts
.
append
(
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
define_macros
=
[(
'HAVE_NDBM_H'
,
None
)],
define_macros
=
[(
'HAVE_NDBM_H'
,
None
)],
libraries
=
ndbm_libs
)
)
libraries
=
ndbm_libs
)
)
elif
(
self
.
compiler
.
find_library_file
(
lib_dirs
,
'gdbm'
)
elif
self
.
compiler
.
find_library_file
(
lib_dirs
,
'gdbm'
):
and
find_file
(
"gdbm/ndbm.h"
,
inc_dirs
,
[])
is
not
None
):
gdbm_libs
=
[
'gdbm'
]
exts
.
append
(
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
if
self
.
compiler
.
find_library_file
(
lib_dirs
,
'gdbm_compat'
):
define_macros
=
[(
'HAVE_GDBM_NDBM_H'
,
None
)],
gdbm_libs
.
append
(
'gdbm_compat'
)
libraries
=
[
'gdbm'
]
)
)
if
find_file
(
"gdbm/ndbm.h"
,
inc_dirs
,
[])
is
not
None
:
exts
.
append
(
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
define_macros
=
[(
'HAVE_GDBM_NDBM_H'
,
None
)],
libraries
=
gdbm_libs
)
)
elif
find_file
(
"gdbm-ndbm.h"
,
inc_dirs
,
[])
is
not
None
:
exts
.
append
(
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
define_macros
=
[(
'HAVE_GDBM_DASH_NDBM_H'
,
None
)],
libraries
=
gdbm_libs
)
)
elif
db_incs
is
not
None
:
elif
db_incs
is
not
None
:
exts
.
append
(
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
exts
.
append
(
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
library_dirs
=
dblib_dir
,
library_dirs
=
dblib_dir
,
...
...
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