-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Tests assume sysconfig scheme to invoke pip #6025
Comments
From Cirq sync:
|
I am using gLinux. I had a working Cirq using
|
@pavoljuhas will investigate and report back. |
@markedmiston - I have followed the steps in your comment and saw all the tests passing with the exception of
These failures were expected because I did not configure docker on my workstation. Is there anything else that you saw going wrong? |
I did not test with Docker and did not see any other errors. I presume if you drop into a Python shell on your container and checked the sysconfig scheme it would be the same as your host's Python. With a venv I believe the default is |
@markedmiston - I have specifically run the tests that were failing in the initial comment and they are all passing in my (cirq-py3) environment. If you can reproduce those errors on your side please advice how. |
Closing as non-reproducible. Please reopen if you run into the initially reported errors again. |
Description of the issue
Test code which create new virtual environments assumes the location of pip is
/bin/pip
in relation to the base directory. This is an assumption by relying on one installation scheme. Python currently supports nine schemes, https://docs.python.org/3/library/sysconfig.html#installation-paths. For example, on a system withposix_prefix
the scripts path would be/usr/local/bin
.How to reproduce the issue
Run the pytests on a system with a different sysconfig scheme than
posix_local
. This may be easier to reproduce with Python 3.10.Related:
pypa/virtualenv#2415
https://lists.debian.org/debian-python/2022/03/msg00039.html
Cirq version
1.1.0
The text was updated successfully, but these errors were encountered: