We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7450003 commit 3060998Copy full SHA for 3060998
tasks.py
@@ -6,7 +6,23 @@
6
Released under the MIT license
7
"""
8
9
+# Version check, ensure it's run with Python 3
10
+import sys
11
import os
12
+if sys.version_info[0] < 3:
13
+ print("Hey! It seems you installed invoke for Python 2!")
14
+ print("Please make sure you installed it with Python 3, else this script "
15
+ "won't work.")
16
+ print("")
17
+ print("In order to fix the issue, please execute the following commands:")
18
+ if os.name == "nt":
19
+ print(" py -m pip uninstall invoke")
20
+ print(" py -3 -m pip install invoke")
21
+ else:
22
+ print(" python -m pip uninstall invoke")
23
+ print(" python3 -m pip install invoke")
24
+ exit(1)
25
+
26
import shutil
27
import glob
28
import re
0 commit comments