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
ba67c148
Commit
ba67c148
authored
Aug 24, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup.py: fix 2.4 compatibility
parent
b83b4935
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
setup.py
setup.py
+9
-0
No files found.
setup.py
View file @
ba67c148
...
@@ -17,6 +17,15 @@ system_dirs = ['/usr/lib/libevent.*',
...
@@ -17,6 +17,15 @@ system_dirs = ['/usr/lib/libevent.*',
'/usr/local/lib64/libevent.*'
]
'/usr/local/lib64/libevent.*'
]
try
:
any
except
NameError
:
def
any
(
iterable
):
for
i
in
iterable
:
if
i
:
return
True
if
ev_dir
is
None
and
any
(
glob
.
glob
(
system_dir
)
for
system_dir
in
system_dirs
):
if
ev_dir
is
None
and
any
(
glob
.
glob
(
system_dir
)
for
system_dir
in
system_dirs
):
print
'found system libevent for'
,
sys
.
platform
print
'found system libevent for'
,
sys
.
platform
gevent_core
=
Extension
(
name
=
name
,
gevent_core
=
Extension
(
name
=
name
,
...
...
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