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
5d3142c5
Commit
5d3142c5
authored
Oct 27, 2006
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check db_setup_debug for a few print statements; change sqlite_setup_debug to False
parent
e0f6c8a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
setup.py
setup.py
+8
-5
No files found.
setup.py
View file @
5d3142c5
...
...
@@ -679,7 +679,8 @@ class PyBuildExt(build_ext):
# save the include directory with the db.h version
# (first occurrance only)
db_ver_inc_map[db_ver] = d
print "
db
.
h
:
found
", db_ver, "
in
", d
if db_setup_debug:
print "
db
.
h
:
found
", db_ver, "
in
", d
else:
# we already found a header for this library version
if db_setup_debug: print "
db
.
h
:
ignoring
", d
...
...
@@ -719,8 +720,9 @@ class PyBuildExt(build_ext):
if db_setup_debug: print "
db
lib
:
", dblib, "
not
found
"
except db_found:
print "
db
lib
:
using
", db_ver, dblib
if db_setup_debug: print "
db
:
lib
dir
", dblib_dir, "
inc
dir
", db_incdir
if db_setup_debug:
print "
db
lib
:
using
", db_ver, dblib
print "
db
:
lib
dir
", dblib_dir, "
inc
dir
", db_incdir
db_incs = [db_incdir]
dblibs = [dblib]
# We add the runtime_library_dirs argument because the
...
...
@@ -741,7 +743,7 @@ class PyBuildExt(build_ext):
dblib_dir = None
# The sqlite interface
sqlite_setup_debug =
Tru
e # verbose debug prints from this script?
sqlite_setup_debug =
Fals
e # verbose debug prints from this script?
# We hunt for #define SQLITE_VERSION "
n
.
n
.
n
"
# We need to find >= sqlite version 3.0.8
...
...
@@ -773,7 +775,8 @@ class PyBuildExt(build_ext):
for x in sqlite_version.split("
.
")])
if sqlite_version_tuple >= MIN_SQLITE_VERSION_NUMBER:
# we win!
print "
%
s
/
sqlite3
.
h
:
version
%
s
"%(d, sqlite_version)
if sqlite_setup_debug:
print "
%
s
/
sqlite3
.
h
:
version
%
s
"%(d, sqlite_version)
sqlite_incdir = d
break
else:
...
...
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