-
Notifications
You must be signed in to change notification settings - Fork 541
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
pip_install doesn't treat python_version correctly for Python 3.10+ #468
Comments
Could be that there's a Python version mismatch between what's used at runtime when installing the dependencies and what's used when running the That doesn't match up in my head with the error you provide:
If I install that package at your specified version with Python 3.9.2 and import asgiref.sync
def run():
print("hello world")
print(asgiref.sync.__file__)
if __name__ == "__main__":
run() Output:
I think to better debug your issue it would be helpful to get a reproduction. |
My fault for poor investigation. Fails with Python 3.10, but not with Python 3.9. Anyway, closing until I figure out stable way to reproduce it |
Yes, this is Python 3.10+ problem. The problem is actually with |
Thanks for that update. I guess this would be sorted by merging #422. |
Hey @codeschlosser is this issue ok to close now is the problem fixed? |
Works now, thanks! |
Description
pip_install doesn't treat python_version correctly for Python 3.10+
🔬 Minimal Reproduction
Try installing "asgiref=3.3.4" pip dependency via pip_install with python having version >= 3.10
asgiref's METADATA mentions requirement for typing-extnensions:
Requires-Dist: typing-extensions ; python_version < "3.8"
🔥 Exception or Error
BUILD file not found in directory 'pypi__typing_extensions' of external repository @workspace_name.
🌍 Your Environment
Debian 10
bazel 4.0.0
Rules_python version: both 2.0 and current master
Anything else relevant?
It seems like an issue is in line 53 of wheel.py where it should beor []
instead ofor [""]
, but I don't have a holistic understanding of rules_python, so no PR, just a bugThe text was updated successfully, but these errors were encountered: