-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.13 #516
Comments
when I try to build, I hit the error
|
I am also very interested in a python 3.13 compatible release. Could you share the whole error log? |
I am also very interested in a python 3.13 compatible release for google-re2, Thanks ! |
It already builds fine with sufficiently recent versions of dependencies (Abseil, pybind11, re2). For example, on Ubuntu 24.10: $ docker run --pull=always --rm -it ubuntu:24.10
root@229a132a6b4a:/# apt update
root@229a132a6b4a:/# apt install -y --no-install-recommends g++ libabsl-dev libre2-dev pybind11-dev python3.13-dev python3.13-venv
root@229a132a6b4a:/# python3.13 -m venv venv
root@229a132a6b4a:/# . venv/bin/activate
(venv) root@229a132a6b4a:/# pip install google-re2
Collecting google-re2
Downloading google_re2-1.1.20240702.tar.gz (11 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: google-re2
Building wheel for google-re2 (pyproject.toml) ... done
Created wheel for google-re2: filename=google_re2-1.1.20240702-cp313-cp313-linux_x86_64.whl size=1663356 sha256=18a2878c8b22afdae98eb66ab95745fa045658fa3a01dc51fa686ea7f28269e0
Stored in directory: /root/.cache/pip/wheels/8e/ee/2d/36f51c4a17497ae98352ac575d982f06706dbb917a9ce66c69
Successfully built google-re2
Installing collected packages: google-re2
Successfully installed google-re2-1.1.20240702
(venv) root@229a132a6b4a:/# python
Python 3.13.0 (main, Oct 7 2024, 21:58:50) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import re2
>>> re2.match("a?" * 26 + "a" * 26, "a" * 26)
<re2._Match object at 0x7fab72a60ae0> All we need are binary wheels for Python 3.13 so it works on every typical platform. Opened https://code-review.googlesource.com/c/re2/+/63490. |
yes, this work FROM ubuntu:24.10
RUN apt-get update \
&& apt install -y --no-install-recommends g++ libabsl-dev libre2-dev pybind11-dev python3.13-dev python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN python3.13 -m pip install google-re2 --break-system-packages |
Requiring Windows users to install Abseil (and, I assume, PyBind11) on their own is very nonstandard and very impractical.
|
hi , some wheels for Python package https://pypi.org/project/google-re2/ for Python 3.13 would help a lot , thanks all 👍
The text was updated successfully, but these errors were encountered: