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
b4391f91
Commit
b4391f91
authored
Feb 06, 2001
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Part of patch #103544: fix detection of BSDDB on BSD systems
parent
da0f7023
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
setup.py
setup.py
+5
-6
No files found.
setup.py
View file @
b4391f91
...
...
@@ -323,17 +323,17 @@ class PyBuildExt(build_ext):
# (See http://electricrain.com/greg/python/bsddb3/ for an interface to
# BSD DB 3.x.)
# Note: If a db.h file is found by configure, bsddb will be enabled
# automatically via Setup.config.in. It only needs to be enabled here
# if it is not automatically enabled there; check the generated
# Setup.config before enabling it here.
db_incs
=
find_file
(
'db_185.h'
,
inc_dirs
,
[])
if
(
db_incs
is
not
None
and
self
.
compiler
.
find_library_file
(
lib_dirs
,
'db'
)
):
exts
.
append
(
Extension
(
'bsddb'
,
[
'bsddbmodule.c'
],
include_dirs
=
db_incs
,
libraries
=
[
'db'
]
)
)
else
:
db_incs
=
find_file
(
'db.h'
,
inc_dirs
,
[])
if
db_incs
is
not
None
:
exts
.
append
(
Extension
(
'bsddb'
,
[
'bsddbmodule.c'
],
include_dirs
=
db_incs
)
)
# The mpz module interfaces to the GNU Multiple Precision library.
# You need to ftp the GNU MP library.
...
...
@@ -347,7 +347,6 @@ class PyBuildExt(build_ext):
# FTP archive sites. One URL for it is:
# ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
# Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
if
(
self
.
compiler
.
find_library_file
(
lib_dirs
,
'gmp'
)):
exts
.
append
(
Extension
(
'mpz'
,
[
'mpzmodule.c'
],
libraries
=
[
'gmp'
]
)
)
...
...
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