Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,34 @@ For class usage refer to the [Reference]("https://github.com/voxpupuli/puppet-py
bundle exec rake strings:generate\[',,,,false,true']
```

### Install Python package to a user's default install directory

The following code simulates
```shell
python3 -m pip install pandas --user`
```
where pip installs packages to a user's default install directory --
typically ~/.local/ on Linux.

```
# Somewhat hackisly, install Python PIP module PANDAS for Oracle Cloud API queries.
python::pyvenv { 'user_python_venv' :
ensure => present,
version => 'system',
systempkgs => true,
venv_dir => '/home/example/.local',
owner => 'example',
group => 'example',
mode => '0750',
}

python::pip { 'pandas':
virtualenv => '/home/example/.local',
owner => 'example',
group => 'example',
}
```

### hiera configuration

This module supports configuration through hiera. The following example
Expand Down
Loading