| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
It already handles that, via the following in its own setup.py: try:
setup(**setup_dict)
except KeyboardInterrupt:
raise
except:
# If there are any compilation errors or there are no build tools available
# for the extension module, delete the extension module and try to install
# the pure Python version.
del setup_dict['ext_modules']
setup(**setup_dict)Note that crcmod doesn't explicitly support Python 3.3 or 3.4. |
Sorry, something went wrong.
|
D'oh! My bad for not checking. Great news though. RE: Python 3.3/3.4 support
I don't know if there is a formal way to "refresh" the package that is 4+ years old. |
Sorry, something went wrong.
|
Running the generator is not so helpful: One of the biggest perks is the .update() and .hexdigest() interface of the Python interface. |
Sorry, something went wrong.
|
Because crcmod is an "optional" dependency (conditionally imported, with an exception raised at the one point it is needed if it is not present), we should declare it via an "extra" in setup.py, e.g.: setup(
name='gcloud',
...
extras_require={
'storage_checksum': ['crcmod'],
},It needs to be in tox.ini as well. |
Sorry, something went wrong.
|
@tseaver We need to determine what to do about Python 3 compatibility before moving too far forward. It seems relying on this library from PyPI is not possible in the current state. |
Sorry, something went wrong.
|
We could fork it to https://github.com/GoogleCloudPlatform/gcloud-python, I guess, and ensure that its tests support the versions we care about. |
Sorry, something went wrong.
|
@cmcqueen Do you have any contact with the maintainers of crcmod? (I am inquiring due to your fork: https://bitbucket.org/cmcqueen1975/crcmod) |
Sorry, something went wrong.
|
I have had contact in the past, though that was several years ago (I contributed some changes to crcmod). I could look up my old e-mail correspondence. |
Sorry, something went wrong.
|
Thanks for the quick reply! That would be great. We essentially just want to get Python 3.3. and Python 3.4 supported in the library without forking it. I don't know what happens to abandoned PyPI packages, but it seems something like crcmod2 might be necessary. |
Sorry, something went wrong.
|
I reached out today to Ray Buvel (the author) via the SourceForge message UI |
Sorry, something went wrong.
|
Thanks @tseaver. Maybe we could file an issue with https://github.com/pypa/pip or reach out to https://groups.google.com/forum/#!forum/pypa-dev (Python Packaging Authority). |
Sorry, something went wrong.
|
What is needed for 3.3 and 3.4 support? Do you mean just compile Windows binaries? I compiled the old ones I think, but only for 32-bit not 64-bit. (I wish the Python foundation provided a service to compile Windows binaries for Python packages, since it's difficult to get set up to compile them, for both 32-bit and 64-bit. It would be really helpful.) There is this unofficial repository of Python binary packages, including crcmod |
Sorry, something went wrong.
|
@cmcqueen Yes, we'd like to have Windows users able to use gcloud and its dependencies on the Python versions we support, without needing to be able to build extensions. I found an explicit e-mail address today for Ray Buvel, and tried again (on the theory that the SF.net profile might have an out-of-date address). |
Sorry, something went wrong.
|
@tseaver Did you ever hear from Ray Buvel? |
Sorry, something went wrong.
|
@tseaver Did you ever hear from Ray Buvel? |
Sorry, something went wrong.
|
Declaring bankruptcy on this PR, which is two years old and no activity for 18 months. |
Sorry, something went wrong.
|
@frankyn This is the ticket for our never-merged CRC32C support. |
Sorry, something went wrong.
|
So the open question is we need to define a package to use for crc32c checksum support? |
Sorry, something went wrong.
Source-Link: googleapis/synthtool@d52e638 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:4f9b3b106ad0beafc2c8a415e3f62c1a0cc23cabea115dbe841b848f581cfe99 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@d52e638 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:4f9b3b106ad0beafc2c8a415e3f62c1a0cc23cabea115dbe841b848f581cfe99 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* fix: table schema change error * improve comments
When limit_to_last was set, we need to reverse the order. However due to error in comparing the order direction, it was not properly set. comparing `order.direction == self.ASCENDING` is always `False` because there are two different types. The correct way is by comparing `order.direction.name == self.ASCENDING` Fixes #536
fix: fix bug with concurrent writes to global cache Fixes #692
* fix add info logg on bidi streaming pull ack_deadline changes * adding test coverage for logging
Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.32.3...v2.32.4) --- updated-dependencies: - dependency-name: requests dependency-version: 2.32.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@69fda12 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ae600f36b6bc972b368367b6f83a1d91ec2c82a4a116b383d67d547c56fe6de3 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
@tseaver I have yet to do two things:
crcmod is compiled C code and it should be optional. Is there a way to ask setuptools to try to install, but continue on if it fails?
This is work towards #547. Picks up where #611 left off.
Some relevant snippets I used:
(ADDED 3/11/2015): https://github.com/GoogleCloudPlatform/gsutil/blob/748c9da8497816dbf9d2044dc25ff16ecf6494f0/gslib/copy_helper.py#L769
https://github.com/GoogleCloudPlatform/gsutil/blob/748c9da8497816dbf9d2044dc25ff16ecf6494f0/gslib/hashing_helper.py#L99-L116
https://github.com/GoogleCloudPlatform/gsutil/blob/748c9da8497816dbf9d2044dc25ff16ecf6494f0/gslib/copy_helper.py#L771
https://github.com/GoogleCloudPlatform/gsutil/blob/748c9da8497816dbf9d2044dc25ff16ecf6494f0/gslib/copy_helper.py#L778