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
7a07a226
Commit
7a07a226
authored
Aug 11, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup.py: minor non-functional changes
parent
f9040405
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
38 deletions
+39
-38
setup.py
setup.py
+39
-38
No files found.
setup.py
View file @
7a07a226
...
...
@@ -11,23 +11,23 @@ ev_dir = None
if
ev_dir
is
None
and
(
glob
.
glob
(
'/usr/lib/libevent*'
)
or
glob
.
glob
(
'/usr/lib64/libevent*'
)
):
print
'found system libevent for'
,
sys
.
platform
libevent
=
Extension
(
name
=
name
,
sources
=
sources
,
libraries
=
[
'event'
])
gevent_core
=
Extension
(
name
=
name
,
sources
=
sources
,
libraries
=
[
'event'
])
elif
ev_dir
is
None
and
glob
.
glob
(
'%s/lib/libevent.*'
%
sys
.
prefix
):
print
'found installed libevent in'
,
sys
.
prefix
libevent
=
Extension
(
name
=
name
,
sources
=
sources
,
include_dirs
=
[
'%s/include'
%
sys
.
prefix
],
library_dirs
=
[
'%s/lib'
%
sys
.
prefix
],
libraries
=
[
'event'
])
gevent_core
=
Extension
(
name
=
name
,
sources
=
sources
,
include_dirs
=
[
'%s/include'
%
sys
.
prefix
],
library_dirs
=
[
'%s/lib'
%
sys
.
prefix
],
libraries
=
[
'event'
])
else
:
if
ev_dir
is
None
:
l
=
glob
.
glob
(
'../libevent*'
)
l
.
reverse
()
for
dir
in
l
:
if
os
.
path
.
isdir
(
dir
):
ev_dir
=
dir
for
path
in
l
:
if
os
.
path
.
isdir
(
path
):
ev_dir
=
path
break
if
ev_dir
:
print
'found libevent build directory'
,
ev_dir
...
...
@@ -47,37 +47,38 @@ else:
else
:
ev_extobjs
=
glob
.
glob
(
'%s/*.o'
%
dir
)
libevent
=
Extension
(
name
=
name
,
sources
=
sources
,
include_dirs
=
ev_incdirs
,
extra_compile_args
=
ev_extargs
,
extra_objects
=
ev_extobjs
,
libraries
=
ev_libraries
)
gevent_core
=
Extension
(
name
=
name
,
sources
=
sources
,
include_dirs
=
ev_incdirs
,
extra_compile_args
=
ev_extargs
,
extra_objects
=
ev_extobjs
,
libraries
=
ev_libraries
)
else
:
sys
.
stderr
.
write
(
"
\
n
WARNING: couldn't find libevent installation or build directory: assuming system-wide libevent is installed.
\
n
\
n
"
)
libevent
=
Extension
(
name
=
name
,
sources
=
sources
,
libraries
=
[
'event'
])
gevent_core
=
Extension
(
name
=
name
,
sources
=
sources
,
libraries
=
[
'event'
])
version
=
re
.
search
(
"__version__
\
s*=
\
s*'(.*)'"
,
open
(
'gevent/__init__.py'
).
read
(),
re
.
M
).
group
(
1
).
strip
()
assert
version
,
version
setup
(
name
=
'gevent'
,
version
=
version
,
description
=
'Python network library that uses greenlet and libevent for easy and scalable concurrency'
,
author
=
'Denis Bilenko'
,
author_email
=
'denis.bilenko@gmail.com'
,
packages
=
[
'gevent'
],
ext_modules
=
[
libevent
],
classifiers
=
[
"License :: OSI Approved :: MIT License"
,
"Programming Language :: Python"
,
"Operating System :: MacOS :: MacOS X"
,
"Operating System :: POSIX"
,
"Topic :: Internet"
,
"Topic :: Software Development :: Libraries :: Python Modules"
,
"Intended Audience :: Developers"
,
"Development Status :: 4 - Beta"
]
)
if
__name__
==
'__main__'
:
setup
(
name
=
'gevent'
,
version
=
version
,
description
=
'Python network library that uses greenlet and libevent for easy and scalable concurrency'
,
author
=
'Denis Bilenko'
,
author_email
=
'denis.bilenko@gmail.com'
,
packages
=
[
'gevent'
],
ext_modules
=
[
gevent_core
],
classifiers
=
[
"License :: OSI Approved :: MIT License"
,
"Programming Language :: Python"
,
"Operating System :: MacOS :: MacOS X"
,
"Operating System :: POSIX"
,
"Topic :: Internet"
,
"Topic :: Software Development :: Libraries :: Python Modules"
,
"Intended Audience :: Developers"
,
"Development Status :: 4 - Beta"
]
)
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