Files
kops-arm64/pipenv-install.py
Henning Jacobs e4d925e101 update dependencies (#185)
* update dependencies

* fix Travis build (NPM cache path)
2018-12-11 19:37:06 +01:00

16 lines
365 B
Python
Executable File

#!/usr/bin/env python3
"""
Helper script for Docker build to install packages from Pipfile.lock without installing Pipenv
"""
import json
import subprocess
with open("Pipfile.lock") as fd:
data = json.load(fd)
packages = []
for k, v in data["default"].items():
packages.append(k + v["version"])
subprocess.run(["pip3", "install"] + packages, check=True)