fix(env): ensure whl installer uses writable path #1260
Annotations
10 errors
Run poetry run pytest --integration -v:
tests/repositories/test_legacy_repository.py#L501
test_package_partial_yank
poetry.utils.env.exceptions.EnvCommandError: Command ['/tmp/tmp3yrt461t/.venv/bin/python', '-E', '-P', '-W', 'ignore', '-c', 'import json\nimport os\nimport platform\nimport sys\nimport sysconfig\n\nINTERPRETER_SHORT_NAMES = {\n "python": "py",\n "cpython": "cp",\n "pypy": "pp",\n "ironpython": "ip",\n "jython": "jy",\n}\n\n\ndef interpreter_version():\n version = sysconfig.get_config_var("interpreter_version")\n if version:\n version = str(version)\n else:\n version = _version_nodot(sys.version_info[:2])\n\n return version\n\n\ndef _version_nodot(version):\n return "".join(map(str, version))\n\n\nif hasattr(sys, "implementation"):\n info = sys.implementation.version\n iver = "{0.major}.{0.minor}.{0.micro}".format(info)\n kind = info.releaselevel\n if kind != "final":\n iver += kind[0] + str(info.serial)\n\n implementation_name = sys.implementation.name\nelse:\n iver = "0"\n implementation_name = platform.python_implementation().lower()\n\nenv = {\n "implementation_name": implementation_name,\n "implementation_version": iver,\n "os_name": os.name,\n "platform_machine": platform.machine(),\n "platform_release": platform.release(),\n "platform_system": platform.system(),\n "platform_version": platform.version(),\n "python_full_version": platform.python_version().rstrip("+"),\n "platform_python_implementation": platform.python_implementation(),\n "python_version": ".".join(platform.python_version_tuple()[:2]),\n "sys_platform": sys.platform,\n "version_info": tuple(sys.version_info),\n # Extra information\n "interpreter_name": INTERPRETER_SHORT_NAMES.get(\n implementation_name, implementation_name\n ),\n "interpreter_version": interpreter_version(),\n}\n\nprint(json.dumps(env))\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: /tmp/tmp3yrt461t/.venv/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L97
test_remove_all[self_and_other]
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L97
test_remove_all[None]
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L138
test_remove_multiple
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L56
test_remove_by_name
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L97
test_remove_all[self]
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L150
test_remove_in_project
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L97
test_remove_all[empty]
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L97
test_remove_all[other]
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Run poetry run pytest --integration -v:
tests/console/commands/env/test_remove.py#L122
test_remove_all_and_version
poetry.utils.env.exceptions.EnvCommandError: Command ['python', '-E', '-P', '-W', 'ignore', '-c', 'import sys\n\nif hasattr(sys, "real_prefix"):\n print(sys.real_prefix)\nelif hasattr(sys, "base_prefix"):\n print(sys.base_prefix)\nelse:\n print(sys.prefix)\n'] errored with the following return code 2
Error output:
Unknown option: -P
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
|
Loading