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
d98f1ab5
Commit
d98f1ab5
authored
Apr 07, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actually pass the environement
parent
b67c63dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
_setuplibuv.py
_setuplibuv.py
+6
-3
_setuputils.py
_setuputils.py
+1
-1
deps/libuv/vcbuild.bat
deps/libuv/vcbuild.bat
+1
-1
No files found.
_setuplibuv.py
View file @
d98f1ab5
...
...
@@ -70,7 +70,7 @@ def prepare_windows_env(env):
# Try if `python` on PATH is the right one. If we would execute
# `python` directly the current executable might be used so we
# delegate this to cmd.
cmd
=
[
'cmd.exe'
,
'/C'
,
'python'
,
'-c'
,
'import sys; '
cmd
=
[
'cmd.exe'
,
'/C'
,
'python'
,
'-c'
,
'import sys; '
'v = str(sys.version_info[:2]); sys.stdout.write(v); '
'sys.stdout.flush()'
]
try
:
...
...
@@ -118,7 +118,10 @@ def configure_libuv(_bext, _ext):
def
build_libuv
():
cflags
=
'-fPIC'
env
=
os
.
environ
.
copy
()
env
[
'CFLAGS'
]
=
' '
.
join
(
x
for
x
in
(
cflags
,
env
.
get
(
'CFLAGS'
,
None
),
env
.
get
(
'ARCHFLAGS'
,
None
))
if
x
)
env
[
'CFLAGS'
]
=
' '
.
join
(
x
for
x
in
(
cflags
,
env
.
get
(
'CFLAGS'
,
None
),
env
.
get
(
'ARCHFLAGS'
,
None
))
if
x
)
# Since we're building a static library, if link-time-optimization is requested, it
# results in failure to properly create the library archive. This goes unnoticed on
# OS X until import time because of '-undefined dynamic_lookup'. On the raspberry
...
...
@@ -126,7 +129,7 @@ def configure_libuv(_bext, _ext):
if
'-flto'
in
env
[
'CFLAGS'
]:
log
.
info
(
"Removing LTO"
)
env
[
'CFLAGS'
]
=
env
[
'CFLAGS'
].
replace
(
'-flto'
,
''
)
log
.
info
(
'Building libuv
...'
)
log
.
info
(
'Building libuv
with cflags %s'
,
env
[
'CFLAGS'
]
)
if
WIN
:
prepare_windows_env
(
env
)
libuv_arch
=
{
'32bit'
:
'x86'
,
'64bit'
:
'x64'
}[
platform
.
architecture
()[
0
]]
...
...
_setuputils.py
View file @
d98f1ab5
...
...
@@ -134,7 +134,7 @@ def _system(cmd, cwd=None, env=None):
def
system
(
cmd
,
cwd
=
None
,
env
=
None
):
if
_system
(
cmd
,
cwd
=
cwd
,
env
=
None
):
if
_system
(
cmd
,
cwd
=
cwd
,
env
=
env
):
sys
.
exit
(
1
)
...
...
deps/libuv/vcbuild.bat
View file @
d98f1ab5
@echo
off
@
rem @
echo
off
cd
%~dp0
...
...
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