Skip to content

Commit 973a6b7

Browse files
committed
pip: Prevent running on Python < 3.10
1 parent f03a673 commit 973a6b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pip/flatpak-pip-generator.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22

33
__license__ = "MIT"
44

5+
import sys
6+
7+
if sys.version_info < (3, 10):
8+
sys.stderr.write("Error: This script requires Python 3.10 or higher.\n")
9+
sys.exit(1)
10+
511
import argparse
612
import hashlib
713
import json
814
import os
915
import re
1016
import shutil
1117
import subprocess
12-
import sys
1318
import tempfile
1419
import urllib.request
1520
from collections import OrderedDict

0 commit comments

Comments
 (0)