Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
dac4bb01
Commit
dac4bb01
authored
Jan 11, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup.py: only chdir back if the first chdir succeeded
parent
4cd17ba5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
setup.py
setup.py
+2
-4
No files found.
setup.py
View file @
dac4bb01
...
@@ -98,11 +98,10 @@ def configure_libev(bext, ext):
...
@@ -98,11 +98,10 @@ def configure_libev(bext, ext):
os
.
makedirs
(
bdir
)
os
.
makedirs
(
bdir
)
cwd
=
os
.
getcwd
()
cwd
=
os
.
getcwd
()
os
.
chdir
(
bdir
)
try
:
try
:
os
.
chdir
(
bdir
)
if
os
.
path
.
exists
(
'config.h'
):
if
os
.
path
.
exists
(
'config.h'
):
return
return
rc
=
_system
(
libev_configure_command
)
rc
=
_system
(
libev_configure_command
)
if
rc
==
0
and
sys
.
platform
==
'darwin'
:
if
rc
==
0
and
sys
.
platform
==
'darwin'
:
make_universal_header
(
'config.h'
,
'SIZEOF_LONG'
,
'SIZEOF_SIZE_T'
,
'SIZEOF_TIME_T'
)
make_universal_header
(
'config.h'
,
'SIZEOF_LONG'
,
'SIZEOF_SIZE_T'
,
'SIZEOF_TIME_T'
)
...
@@ -122,11 +121,10 @@ def configure_ares(bext, ext):
...
@@ -122,11 +121,10 @@ def configure_ares(bext, ext):
return
return
cwd
=
os
.
getcwd
()
cwd
=
os
.
getcwd
()
os
.
chdir
(
bdir
)
try
:
try
:
os
.
chdir
(
bdir
)
if
os
.
path
.
exists
(
'ares_config.h'
)
and
os
.
path
.
exists
(
'ares_build.h'
):
if
os
.
path
.
exists
(
'ares_config.h'
)
and
os
.
path
.
exists
(
'ares_build.h'
):
return
return
rc
=
_system
(
ares_configure_command
)
rc
=
_system
(
ares_configure_command
)
if
rc
==
0
and
sys
.
platform
==
'darwin'
:
if
rc
==
0
and
sys
.
platform
==
'darwin'
:
make_universal_header
(
'ares_build.h'
,
'CARES_SIZEOF_LONG'
)
make_universal_header
(
'ares_build.h'
,
'CARES_SIZEOF_LONG'
)
...
...
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