GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove gRPC/GAX conditional checks. by dhermes · Pull Request #2308 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Sep 12, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Adding support for an environment variable that App Engine users can use to disable installing gRPC packages into their application.

Follow-up to #2304.

@jonparrott Can you weigh in here on the GAE env. var. in setup.py?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dhermes dhermes added packaging grpc GAX labels Sep 12, 2016
@dhermes dhermes assigned daspecster and tseaver Sep 12, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 12, 2016
@dhermes

dhermes commented Sep 12, 2016

Copy link
Copy Markdown
Contributor Author

I also added this branch to https://github.com/GoogleCloudPlatform/google-cloud-python/ temporarily to vet the AppVeyor changes:
https://ci.appveyor.com/project/GoogleCloudPlatform/google-cloud-python/build/1.0.664.followup-2304

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

What's prompting this change? This is essentially switching to grpc as a hard requirement for this library.

@omaray should probably chime in, too.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

@jonparrott I touched an old part in #2304 that sparked the discussion. gRPC is already a hard requirement in Python 2.7.

Very soon it won't be in google-cloud, it'll be in google-cloud-bigtable, google-cloud-pubsub, etc. so it's not that worrisome.

I just wanted your input on the env. var. to shut it down.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

Any dynamic behavior in setup.py will force you to stop providing wheels
(for py2.7 in this case, at least).

Otherwise whatever. App engine standard really just needs to add grpc
support and we probably need to write a custom script to handle installing
this package properly.

On Mon, Sep 12, 2016, 6:33 PM Danny Hermes [email protected] wrote:

@jonparrott https://github.com/jonparrott I touched an old part in #2304
#2304
that sparked the discussion. gRPC is already a hard requirement in Python
2.7.

Very soon it won't be in google-cloud, it'll be in google-cloud-bigtable,
google-cloud-pubsub, etc. so it's not that worrisome.

I just wanted your input on the env. var. to shut it down.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2308 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPUcy8F66KFoXSbUqCRz2k-L_KfWWjiks5qpf17gaJpZM4J7G6R
.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

force you to stop providing wheels

How so?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

Wheels don't run setup.py at all.

On Mon, Sep 12, 2016, 6:40 PM Danny Hermes [email protected] wrote:

force you to stop providing wheels

How so?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2308 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPUc76mbcgxFFGX-B3jZZqpJGrAs5Geks5qpf7_gaJpZM4J7G6R
.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 13, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@jonparrott So your concern is that setup.py wouldn't be invoked by someone trying to install into a GAE environment?


Worth noting: I canceled the travis-ci/push check since it came from creating a branch. Though in reality I only created the branch for the AppVeyor check.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

@dhermes exactly

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

But for the purposes of you writing docs, couldn't you include --no-use-wheel or --no-binary?

This discussion may become moot when we make each service it's own package? But for services like pubsub and logging, gRPC should be the default unless it can't be, so we'll probably add gRPC as a dependency in google-cloud-pubsub, etc.

Any suggestions for how to play nice with everyone (GAE, using wheels, etc.)?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

Just be sure to publish an sdist as well as a wheel for now. I really have no idea what our strategy is going to be for standard.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

@jonparrott SGTM, I'll tear out the env. var. and we can punt for now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes force-pushed the followup-2304 branch from 57c2dbc to 979dd17 Compare September 13, 2016 18:13
@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

I deleted the branch and AppVeyor didn't trigger on my new push w/o the GAE env. var.

https://ci.appveyor.com/project/GoogleCloudPlatform/google-cloud-python/build/1.0.664.followup-2304 still a good indicator that the changes work on Windows

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver
tseaver reviewed Sep 13, 2016
View reviewed changes
Comment thread setup.py

if sys.version_info[:2] == (2, 7) and 'READTHEDOCS' not in os.environ:
REQUIREMENTS.extend(GRPC_EXTRAS)
RTD_ENV_VAR = 'READTHEDOCS'

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

I'm confused: aren't we losing our can't-install-gRPC fallback here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
Remove gRPC/GAX conditional checks.
27a6c42
@dhermes
dhermes force-pushed the followup-2304 branch from 979dd17 to 27a6c42 Compare September 13, 2016 18:49
@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver What is our "our can't-install-gRPC fallback"?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

@dhermes Until this PR, installing gcloud-python without also installing gcloud-python[grpc] still allows use of all of the APIs except Bigtable. On platforms where those extras cannot be installed for some reason, the library is still useful: even Dubsub, Datastore, and Logging fall back to using HTTP.

With this change, users who cannot install grpcio and the GAX wrappers will no longer be able to install the library. GAE is the obvious case, but maybe users on older LTS releases will have the same issues.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 13, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver

  1. That's already not true on 2.7 (i.e. if they are on 2.7 we always add the gRPC deps, it is this way because Python 3 install was b0rked at the time)
  2. Once we move to google-cloud-* packages, users can opt in to the packages they want, some of which will have gRPC and some which won't. Though for packages with a fallback, we still have to solve this problem.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented Sep 15, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver Bump.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Sep 15, 2016

Copy link
Copy Markdown
Contributor

LGTM. I'll let @jonparrott deal with the pitchfork-wielding GAE mob, then. :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes merged commit 6f09ebd into googleapis:master Sep 15, 2016
@dhermes
dhermes deleted the followup-2304 branch September 15, 2016 16:22
@tseaver tseaver mentioned this pull request Sep 16, 2016
Upgrade dependencies to gapic-* 0.9.x packages #2324
Merged
@dhermes dhermes mentioned this pull request Sep 19, 2016
Cut 0.19.0 release. #2270
Merged
@theacodes theacodes unassigned daspecster Sep 28, 2018
parthea pushed a commit that referenced this pull request Nov 24, 2025
@ohmayr @vchudnov-g
chore: add documentation for logging (#2308)
d66d418
Co-authored-by: Victor Chudnovsky <[email protected]>
parthea pushed a commit that referenced this pull request Mar 2, 2026
@chalmerlowe @daniel-sanche
chore: librarian release pull request: 20251212T151524Z (#2344)
9d14bda
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620
<details><summary>google-cloud-bigquery: 3.39.0</summary>

##
[3.39.0](googleapis/python-bigquery@v3.38.0...v3.39.0)
(2025-12-12)

### Features

* adds support for Python runtime 3.14 (#2322)
([6065e14c](googleapis/python-bigquery@6065e14c))

* Add ExternalRuntimeOptions to BigQuery routine (#2311)
([fa76e310](googleapis/python-bigquery@fa76e310))

### Bug Fixes

* remove ambiguous error codes from query retries (#2308)
([8bbd3d01](googleapis/python-bigquery@8bbd3d01))

* include `io.Base` in the `PathType` (#2323)
([b11e09cb](googleapis/python-bigquery@b11e09cb))

* honor custom `retry` in `job.result()` (#2302)
([e118b029](googleapis/python-bigquery@e118b029))

### Documentation

* remove experimental annotations from GA features (#2303)
([1f1f9d41](googleapis/python-bigquery@1f1f9d41))

</details>

Co-authored-by: Daniel Sanche <[email protected]>
parthea pushed a commit that referenced this pull request Mar 6, 2026
@tswast
fix: remove ambiguous error codes from query retries (#2308)
58dc210
Context: internal issue b/445984807 comment 10.
parthea pushed a commit that referenced this pull request Apr 1, 2026
@GarrettWu
chore: release 2.30.0 (#2308)
be79099
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c8612d3fffb3f6a32353b2d1abd16b61e87811866f7ec9d65b59b02eb452a620
<details><summary>bigframes: 2.30.0</summary>

##
[2.30.0](google/bigframes@v2.29.0...v2.30.0)
(2025-12-03)

### Features

* Support mixed scalar-analytic expressions (#2239)
([20ab469d](google/bigframes@20ab469d))

* Allow drop_duplicates over unordered dataframe (#2303)
([52665fa5](google/bigframes@52665fa5))

* Preserve source names better for more readable sql (#2243)
([64995d65](google/bigframes@64995d65))

* use end user credentials for `bigframes.bigquery.ai` functions when
`connection_id` is not present (#2272)
([7c062a68](google/bigframes@7c062a68))

* pivot_table supports fill_value arg (#2257)
([8f490e68](google/bigframes@8f490e68))

* Support builtins funcs for df.agg (#2256)
([956a5b00](google/bigframes@956a5b00))

* add bigquery.json_keys (#2286)
([b487cf1f](google/bigframes@b487cf1f))

* Add agg/aggregate methods to windows (#2288)
([c4cb39dc](google/bigframes@c4cb39dc))

* Add bigframes.pandas.crosstab (#2231)
([c62e5535](google/bigframes@c62e5535))

* Implement single-column sorting for interactive table widget (#2255)
([d1ecc61b](google/bigframes@d1ecc61b))

### Bug Fixes

* Pass credentials properly for read api instantiation (#2280)
([3e3fe259](google/bigframes@3e3fe259))

* Update max_instances default to reflect actual value (#2302)
([4489687e](google/bigframes@4489687e))

* Improve Anywidget pagination and display for unknown row counts
(#2258)
([508deae5](google/bigframes@508deae5))

* Fix issue with stream upload batch size upload limit (#2290)
([6cdf64b0](google/bigframes@6cdf64b0))

* calling info() on empty dataframes no longer leads to errors (#2267)
([95a83f77](google/bigframes@95a83f77))

* do not warn with DefaultIndexWarning in partial ordering mode (#2230)
([cc2dbae6](google/bigframes@cc2dbae6))

### Documentation

* update docs and tests for Gemini 2.5 models (#2279)
([08c0c0c8](google/bigframes@08c0c0c8))

* Add Google Analytics configuration to conf.py (#2301)
([0b266da1](google/bigframes@0b266da1))

* fix LogisticRegression docs rendering (#2295)
([32e53134](google/bigframes@32e53134))

* update API reference to new `dataframes.bigquery.dev` location (#2293)
([da064397](google/bigframes@da064397))

* use autosummary to split documentation pages (#2251)
([f7fd2d20](google/bigframes@f7fd2d20))

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

cla: yes This human has signed the Contributor License Agreement. grpc packaging

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@dhermes @theacodes @tseaver @daspecster @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.