pypa / pipenv

Python Development Workflow for Humans.
https://pipenv.pypa.io
MIT License
24.72k stars 1.86k forks source link

Inline Environment Variables - Regression 2023.11.17 ->2023.12.1 #6083

Open Faaux opened 5 months ago

Faaux commented 5 months ago

Issue description

The following command was supported in 2023.11.17: pipenv run DISABLE_API_GENERATION=1 sphinx-build -b html -d some_path With 2023.12.1 it fails with: Error: the command DISABLE_API_GENERATION=1 could not be found within PATH or Pipfile's [scripts].

Expected result

The command sphinx-build -b html -d some_path is run with the environment variable DISABLE_API_GENERATION set to 1

Actual result

The command errors

Steps to replicate

Provide the steps to replicate (which usually at least includes the commands and the Pipfile).

navrkald commented 4 months ago

Having exactly same issue.

minimal reproducible example of Pipfile:

[scripts]
hello_env_variable = "FOO='hello world' python -c 'import os; print(os.getenv(\"FOO\"))'"

and run it:

pipenv run hello_env_variable

And got error:

Error: the command FOO=hello world (from hello_env_variable) could not be found within PATH.

When I run same command last working version of pipenv I got correct output:

hello world