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
5d0cce34
Commit
5d0cce34
authored
9 years ago
by
Masood Malekghassemi
Browse files
Options
Downloads
Plain Diff
Merge pull request #5207 from soltanmm/hack
Paper over custom command limitations
parents
05632298
b6d3a823
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
src/python/grpcio/commands.py
+10
-0
10 additions, 0 deletions
src/python/grpcio/commands.py
tools/run_tests/build_artifact_python.sh
+7
-1
7 additions, 1 deletion
tools/run_tests/build_artifact_python.sh
with
17 additions
and
1 deletion
src/python/grpcio/commands.py
+
10
−
0
View file @
5d0cce34
...
...
@@ -187,7 +187,17 @@ class Install(install.install, WheelNameMixin):
class
BdistWheelCustomName
(
bdist_wheel
.
bdist_wheel
,
WheelNameMixin
):
"""
Thin wrapper around the bdist command to build with our custom name.
"""
description
=
(
"
Create a gRPC custom-named wheel distribution.
"
"
Cannot be run with any other distribution-related command.
"
)
def
run
(
self
):
# TODO(atash): if the hack we use to support Linux binaries becomes
# 'supported' (i.e.
# https://bitbucket.org/pypa/pypi/issues/120/binary-wheels-for-linux-are-not-supported
# is not solved and we see users beginning to use this command, ill-advised
# as that may be) consider making the following capable of running with
# other distribution-related commands. Currently it depends on the (AFAIK
# undocumented, private) ordering of the distribution files.
bdist_wheel
.
bdist_wheel
.
run
(
self
)
output
=
self
.
distribution
.
dist_files
[
-
1
][
2
]
target
=
os
.
path
.
join
(
self
.
dist_dir
,
'
{}.whl
'
.
format
(
self
.
wheel_name
(
True
)))
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/build_artifact_python.sh
+
7
−
1
View file @
5d0cce34
...
...
@@ -43,7 +43,13 @@ GRPC_PYTHON_USE_CUSTOM_BDIST=0 \
GRPC_PYTHON_BUILD_WITH_CYTHON
=
1
\
${
SETARCH_CMD
}
python setup.py
\
bdist_wheel
\
sdist
\
sdist
# The bdist_wheel_grpc_custom command is finicky about command output ordering
# and thus ought to be run in a shell command separate of others.
GRPC_PYTHON_USE_CUSTOM_BDIST
=
0
\
GRPC_PYTHON_BUILD_WITH_CYTHON
=
1
\
${
SETARCH_CMD
}
python setup.py
\
bdist_wheel_grpc_custom
mkdir
-p
artifacts
...
...
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