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
4c99071c
Commit
4c99071c
authored
Jun 30, 2012
by
doko@ubuntu.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix the OS X build failure, only try to remove the temporary file if it exists
parent
7f7902ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
setup.py
setup.py
+3
-2
No files found.
setup.py
View file @
4c99071c
...
...
@@ -657,7 +657,7 @@ class PyBuildExt(build_ext):
ret
=
os
.
system
(
"ldd %s > %s"
%
(
do_readline
,
tmpfile
))
else
:
ret
=
256
if
ret
==
0
:
if
ret
>>
8
==
0
:
with
open
(
tmpfile
)
as
fp
:
for
ln
in
fp
:
if
'curses'
in
ln
:
...
...
@@ -669,7 +669,8 @@ class PyBuildExt(build_ext):
if '
tinfo
' in ln:
readline_termcap_library = '
tinfo
'
break
os.unlink(tmpfile)
if os.path.exists(tmpfile):
os.unlink(tmpfile)
# Issue 7384: If readline is already linked against curses,
# use the same library for the readline and curses modules.
if '
curses
' in readline_termcap_library:
...
...
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