malboxes
malboxes copied to clipboard
Python in Malboxes
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:
- install python from chocolatey
- Add
python_packagestomalboxes/templates/snippets/provision_win7_common.jsonandmalboxes/templates/snippets/provision_win10_common.json
Thoughts?
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"]
}