malboxes icon indicating copy to clipboard operation
malboxes copied to clipboard

Python in Malboxes

Open Svieg opened this issue 6 years ago • 1 comments

I personally had a use case for installing python and pip packages. I thought it would be cool to do that automatically like choco_packages but python_packages.

Modifications would be like:

  1. install python from chocolatey
  2. Add python_packages to malboxes/templates/snippets/provision_win7_common.json and malboxes/templates/snippets/provision_win10_common.json

Thoughts?

Svieg avatar Oct 23 '19 20:10 Svieg

I'm not sure. Then why not ruby_packages or java_libraries?

Today, you could already accomplish what you want with profiles:

{
    "package": [{"package": "python3"}],
    "packer": {
        "provisioners": [
            {
                "type": "windows-shell",
                "inline": ["pip install pyrdp"]
            }
        ]
    }
}

I would be open to provide a shorter syntax to the packer->provisioners boilerplate above.

Maybe having something in the profile called powershell or cmd would be more succinct:

{
  "package": [{"package": "python3"}],
  "cmd": ["pip install pyrdp"]
}

obilodeau avatar Oct 24 '19 14:10 obilodeau