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
0b63b569
Commit
0b63b569
authored
Apr 15, 2012
by
Ross Lagerwall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be less verbose when building dbm.
parent
2a082add
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
setup.py
setup.py
+5
-4
No files found.
setup.py
View file @
0b63b569
...
@@ -1072,6 +1072,7 @@ class PyBuildExt(build_ext):
...
@@ -1072,6 +1072,7 @@ class PyBuildExt(build_ext):
else:
else:
missing.append('_sqlite3')
missing.append('_sqlite3')
dbm_setup_debug = False # verbose debug prints from this script?
dbm_order = ['gdbm']
dbm_order = ['gdbm']
# The standard Unix dbm module:
# The standard Unix dbm module:
if platform not in ['cygwin']:
if platform not in ['cygwin']:
...
@@ -1093,7 +1094,7 @@ class PyBuildExt(build_ext):
...
@@ -1093,7 +1094,7 @@ class PyBuildExt(build_ext):
ndbm_libs
=
[
'ndbm'
]
ndbm_libs
=
[
'ndbm'
]
else
:
else
:
ndbm_libs
=
[]
ndbm_libs
=
[]
print
(
"building dbm using ndbm"
)
if
dbm_setup_debug
:
print
(
"building dbm using ndbm"
)
dbmext
=
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
dbmext
=
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
define_macros
=
[
define_macros
=
[
(
'HAVE_NDBM_H'
,
None
),
(
'HAVE_NDBM_H'
,
None
),
...
@@ -1108,7 +1109,7 @@ class PyBuildExt(build_ext):
...
@@ -1108,7 +1109,7 @@ class PyBuildExt(build_ext):
'gdbm_compat'
):
'gdbm_compat'
):
gdbm_libs
.
append
(
'gdbm_compat'
)
gdbm_libs
.
append
(
'gdbm_compat'
)
if
find_file
(
"gdbm/ndbm.h"
,
inc_dirs
,
[])
is
not
None
:
if
find_file
(
"gdbm/ndbm.h"
,
inc_dirs
,
[])
is
not
None
:
print
(
"building dbm using gdbm"
)
if
dbm_setup_debug
:
print
(
"building dbm using gdbm"
)
dbmext
=
Extension
(
dbmext
=
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
'_dbm'
,
[
'_dbmmodule.c'
],
define_macros
=
[
define_macros
=
[
...
@@ -1117,7 +1118,7 @@ class PyBuildExt(build_ext):
...
@@ -1117,7 +1118,7 @@ class PyBuildExt(build_ext):
libraries
=
gdbm_libs
)
libraries
=
gdbm_libs
)
break
break
if
find_file
(
"gdbm-ndbm.h"
,
inc_dirs
,
[])
is
not
None
:
if
find_file
(
"gdbm-ndbm.h"
,
inc_dirs
,
[])
is
not
None
:
print
(
"building dbm using gdbm"
)
if
dbm_setup_debug
:
print
(
"building dbm using gdbm"
)
dbmext
=
Extension
(
dbmext
=
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
'_dbm'
,
[
'_dbmmodule.c'
],
define_macros
=
[
define_macros
=
[
...
@@ -1127,7 +1128,7 @@ class PyBuildExt(build_ext):
...
@@ -1127,7 +1128,7 @@ class PyBuildExt(build_ext):
break
break
elif
cand
==
"bdb"
:
elif
cand
==
"bdb"
:
if
db_incs
is
not
None
:
if
db_incs
is
not
None
:
print
(
"building dbm using bdb"
)
if
dbm_setup_debug
:
print
(
"building dbm using bdb"
)
dbmext
=
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
dbmext
=
Extension
(
'_dbm'
,
[
'_dbmmodule.c'
],
library_dirs
=
dblib_dir
,
library_dirs
=
dblib_dir
,
runtime_library_dirs
=
dblib_dir
,
runtime_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