Skip to content
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

incomplete regex install when using uv (linux and macos) #547

Open
5 tasks
ssbarnea opened this issue Nov 6, 2024 · 0 comments
Open
5 tasks

incomplete regex install when using uv (linux and macos) #547

ssbarnea opened this issue Nov 6, 2024 · 0 comments

Comments

@ssbarnea
Copy link

ssbarnea commented Nov 6, 2024

Apparently if anyone is trying to install regex library using uv, they might get a broken setup:

> uv pip install regex==2024.9.11
> python3 -c "import regex._regex as _regex"
ModuleNotFoundError: No module named 'regex._regex'

> uv pip uninstall regex
> pip install regex==2024.9.11
> python3 -c "import regex._regex as _regex"
success

While installation succeeds, it does not install it properly, thus breaking it usage.

I suspect that this might have something to do with the archaic use of setup.py, which would be sorted by adopting https://peps.python.org/pep-0517/

Context: MacOS arm64 machine, python 3.12. I tried the same on Linux (ubuntu) arm64 with python 3.12 and I did not get the same error, thus it might be specific to macos.

Test results on MacoS arm64 with pythons installed using asdf:

  • python3.13t broken, fail to import
  • python3.13 broken, fail to import
  • python3.12 broken, fail to import
  • python3.11 broken, fail to import
  • python3.10 works!

Seem related to #413

@ssbarnea ssbarnea changed the title regex packaging break uv, likely due to lack of PEP-517 macos: regex packaging break uv, likely due to lack of PEP-517 Nov 6, 2024
@ssbarnea ssbarnea changed the title macos: regex packaging break uv, likely due to lack of PEP-517 macos: incomplete regex install when using uv Nov 6, 2024
@ssbarnea ssbarnea changed the title macos: incomplete regex install when using uv incomplete regex install when using uv (linux and macos) Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant