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
07a40685
Commit
07a40685
authored
Jul 16, 2015
by
Chris Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made ok for pypy and py26; add to existing CFLAGS
parent
678a09cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
setup.py
setup.py
+9
-6
No files found.
setup.py
View file @
07a40685
#!/usr/bin/env python
"""gevent build & installation script"""
from
__future__
import
print_function
import
sys
import
os
...
...
@@ -10,7 +8,9 @@ from os.path import join, abspath, basename, dirname
from
subprocess
import
check_call
from
glob
import
glob
import
sysconfig
# to get CFLAGS to pass into c-ares configure script
import
distutils
import
distutils.sysconfig
# to get CFLAGS to pass into c-ares configure script
PYPY
=
hasattr
(
sys
,
'pypy_version_info'
)
...
...
@@ -66,10 +66,12 @@ libev_configure_command = ' '.join(["(cd ", _quoted_abspath('libev/'),
" && /bin/sh ./configure "
,
" && mv config.h
\
"
$OLDPWD
\
"
)"
,
'> configure-output.txt'
])
if
"m32"
in
sysconfig
.
get_config_var
(
"CFLAGS"
):
_m32
=
"CFLAGS=-m32 "
_config_vars
=
distutils
.
sysconfig
.
get_config_var
(
"CFLAGS"
)
if
_config_vars
and
"m32"
in
_config_vars
:
_m32
=
'CFLAGS="'
+
os
.
getenv
(
'CFLAGS'
,
''
)
+
' -m32"'
else
:
_m32
=
""
_m32
=
''
ares_configure_command
=
' '
.
join
([
"(cd "
,
_quoted_abspath
(
'c-ares/'
),
" && if [ -e ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi "
,
...
...
@@ -351,6 +353,7 @@ if run_make and os.path.exists("Makefile"):
else
:
setup_requires
=
[]
def
run_setup
(
ext_modules
,
run_make
):
if
run_make
:
if
isinstance
(
run_make
,
str
):
...
...
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