From 10c0d9a23adac7a7f5ff98798900838ff7e522e7 Mon Sep 17 00:00:00 2001 From: Ian Burgwin Date: Wed, 22 Jul 2020 20:44:22 -0700 Subject: [PATCH] add windows-install-dependencies.py --- windows-install-dependencies.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 windows-install-dependencies.py diff --git a/windows-install-dependencies.py b/windows-install-dependencies.py new file mode 100644 index 0000000..45698dc --- /dev/null +++ b/windows-install-dependencies.py @@ -0,0 +1,13 @@ +# This is meant to be double-clicked from File Explorer. + +# This doesn't import pip as a module in case the way it's executed changes, which it has in the past. +# Instead we call it like we would in the command line. + +from subprocess import run +from os.path import dirname, join +from sys import executable + +root_dir = dirname(__file__) + +run([executable, '-m', 'pip', 'install', '--user', '-r', join(root_dir, 'requirements-win32.txt')]) +input('Press enter to close')