Python interpreter can now be overridden
diff --git a/compiler/cli.py b/compiler/cli.py
index 083f931..7a34b4e 100644
--- a/compiler/cli.py
+++ b/compiler/cli.py
@@ -60,6 +60,9 @@
         '--stub_file',
         help='Read imports and interpreter path from the specified stub file',
         required=True)
+    parser.add_argument(
+        '--interpreter',
+        help='Interpreter to use instead of determining it from the stub file')
     # The default timestamp is "Jan 1 1980 00:00:00 utc", which is the
     # earliest time that can be stored in a zip file.
     #
@@ -138,6 +141,9 @@
     # Parse information from stub file that's too hard to compute in Skylark
     import_roots, interpreter = parse_stub(args.stub_file)
 
+    if args.interpreter:
+        interpreter = args.interpreter
+
     par = python_archive.PythonArchive(
         main_filename=args.main_filename,
         import_roots=import_roots,