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
dabd019b
Commit
dabd019b
authored
Mar 17, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Capturing the exit status for the build process didn't work. Using
popen2.Popen4() makes it work. Fixes #702180.
parent
639ae702
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Lib/plat-mac/pimp.py
Lib/plat-mac/pimp.py
+7
-6
No files found.
Lib/plat-mac/pimp.py
View file @
dabd019b
...
@@ -14,6 +14,7 @@ intention is that the end user will use this through a GUI.
...
@@ -14,6 +14,7 @@ intention is that the end user will use this through a GUI.
"""
"""
import
sys
import
sys
import
os
import
os
import
popen2
import
urllib
import
urllib
import
urllib2
import
urllib2
import
urlparse
import
urlparse
...
@@ -395,16 +396,15 @@ class PimpPackage:
...
@@ -395,16 +396,15 @@ class PimpPackage:
output
.
write
(
"+ %s
\
n
"
%
cmd
)
output
.
write
(
"+ %s
\
n
"
%
cmd
)
if
NO_EXECUTE
:
if
NO_EXECUTE
:
return
0
return
0
dummy
,
fp
=
os
.
popen4
(
cmd
,
"r"
)
child
=
popen2
.
Popen4
(
cmd
)
dummy
.
close
()
child
.
tochild
.
close
()
while
1
:
while
1
:
line
=
fp
.
readline
()
line
=
child
.
fromchild
.
readline
()
if
not
line
:
if
not
line
:
break
break
if
output
:
if
output
:
output
.
write
(
line
)
output
.
write
(
line
)
rv
=
fp
.
close
()
return
child
.
wait
()
return
rv
def
downloadPackageOnly
(
self
,
output
=
None
):
def
downloadPackageOnly
(
self
,
output
=
None
):
"""Download a single package, if needed.
"""Download a single package, if needed.
...
@@ -588,7 +588,8 @@ class PimpPackage_source(PimpPackage):
...
@@ -588,7 +588,8 @@ class PimpPackage_source(PimpPackage):
if
not
installcmd
:
if
not
installcmd
:
installcmd
=
'"%s" setup.py install'
%
sys
.
executable
installcmd
=
'"%s" setup.py install'
%
sys
.
executable
if
self
.
_cmd
(
output
,
self
.
_buildDirname
,
installcmd
):
if
self
.
_cmd
(
output
,
self
.
_buildDirname
,
installcmd
):
return
"install %s: running
\
"
%s
\
"
failed"
%
self
.
fullname
()
return
"install %s: running
\
"
%s
\
"
failed"
%
\
(
self
.
fullname
(),
installcmd
)
self
.
afterInstall
()
self
.
afterInstall
()
...
...
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