Oryx icon indicating copy to clipboard operation
Oryx copied to clipboard

Flag to install Python requirements to user scope

Open jungaretti opened this issue 3 years ago • 2 comments
trafficstars

Feature Request

Is it possible to force Oryx to install Python requirements to the user scope instead of a new virtual environment? PythonBashBuildSnippet.sh.tpl gives me the impression that a blank virtual environment name (e.g., -p virtualenv_name="") should work, but instead I see an error: the following arguments are required: ENV_DIR

Relevant Links

  • https://github.com/microsoft/Oryx/blob/main/doc/runtimes/python.md#build

jungaretti avatar Mar 22 '22 00:03 jungaretti

Adding @qianz2, as per our parallel email thread

daniv-msft avatar Mar 23 '22 20:03 daniv-msft

@jungaretti As per email tread discussion, we want to make this property default to be an empty string instead of defaults to 'pythonenv<Python version>'. We'll start working on this update soon. https://github.com/microsoft/Oryx/blob/f78e2755e254d2d5fb4434611c1b58eacfe2e09a/src/BuildScriptGenerator/Python/PythonPlatform.cs#L23-L25

qianz2 avatar Mar 29 '22 21:03 qianz2

We're closing this issue due to its age. If this is still impacting you please open a new issue and simply link back to this one.

simonjj avatar Jan 11 '24 17:01 simonjj