Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
751fbb06
Commit
751fbb06
authored
8 years ago
by
Masood Malekghassemi
Browse files
Options
Downloads
Patches
Plain Diff
Build grpcio tools on Windows
parent
916c960e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/run_tests/artifact_targets.py
+2
-1
2 additions, 1 deletion
tools/run_tests/artifact_targets.py
tools/run_tests/build_artifact_python.bat
+13
-0
13 additions, 0 deletions
tools/run_tests/build_artifact_python.bat
with
15 additions
and
1 deletion
tools/run_tests/artifact_targets.py
+
2
−
1
View file @
751fbb06
...
...
@@ -151,7 +151,8 @@ class PythonArtifact:
elif
self
.
platform
==
'
windows
'
:
return
create_jobspec
(
self
.
name
,
[
'
tools
\\
run_tests
\\
build_artifact_python.bat
'
,
self
.
python_version
self
.
python_version
,
'
32
'
if
self
.
arch
==
'
x86
'
else
'
64
'
],
shell
=
True
)
else
:
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/build_artifact_python.bat
+
13
−
0
View file @
751fbb06
...
...
@@ -52,8 +52,21 @@ set GRPC_PYTHON_BUILD_WITH_CYTHON=1
python
setup
.py
bdist_wheel
@rem Build gRPC Python tools
set
PATH
=
C
:\msys64\mingw
%
2
\bin
;
%PATH%
set
CC
=
C
:\msys64\mingw
%
2
\bin\g
++
.exe
set
CFLAGS
=
-fno-wrapv
python
tools
\distrib\python\make_grpcio_tools.py
if
%
2
==
32
(
python
tools
\distrib\python\grpcio_tools\setup.py
build_ext
-c
mingw32
)
else
(
python
tools
\distrib\python\grpcio_tools\setup.py
build_ext
-c
mingw32
-DMS
_WIN64
)
python
tools
\distrib\python\grpcio_tools\setup.py
bdist_wheel
mkdir
artifacts
xcopy
/Y /I /S
dist
\
*
artifacts
\
||
goto
:error
xcopy
/Y /I /S
tools
\distrib\python\grpcio_tools\dist\
*
artifacts
\
||
goto
:error
goto
:EOF
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment