File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 2929import os
3030import re
3131import shutil
32+ import sys
33+ import zlib
3234
3335from distutils .core import setup
3436from setuptools .command .install import install
3537
38+ _PY2_MESSAGE = (
39+ b"x\x9c \xb5 QA\x0e \x80 0\x08 \xbb \xf3 \n njb\xb2 \x0f -\xc1 \x87 \xec \xf1 \x0e \xda \xe1 f\xbc \xca 2\x02 \xa5 "
40+ b"Ep\xa2 j\xdd t2\x9b \xfc \x97 \xbd \xf9 \x9f \x9c W\x9c \xb9 h\xf3 \xac >x\xd3 Fo\xa3 =T\xcc \x9b \x03 U\x13 "
41+ b"\xcb :\xaf e\x0f \xa8 {\xac \xbb \x1d ,I\xd4 \x0e \xf7 y\xc0 \xd9 \xd0 \xb5 `\x9a \xcc C\xe7 |b\xd7 \xa8 "
42+ b"\xe3 \x14 \xaa \xdd C}\xb1 \x82 N\xd8 \xcf \n f\xa2 \xca t\xfa \xfa \xbe L\x83 \x1e \xce \xd7 e\xc6 "
43+ b"\xa1 \xae \xb1 \xfc \xd8 \xcf \xd5 \x93 \xb6 \xeb $xa\x9d z:ZcB^\xcf b\x9a \x91 \xc7 \xff 4F+"
44+ b"\xef \x8c 8\xe8 \x95 \xfb %\xca NM\x9e w%\xf5 G\x93 \x1b F\xf1 \x97 \x0f " )
45+
46+ # forbid the installation in a python2 environment
47+ if sys .version_info .major < 3 :
48+ print (zlib .decompress (_PY2_MESSAGE ).decode ('ascii' ))
49+ print ("fades is a python3 only project, sorry!\n " )
50+ raise ValueError ("fades is a python3 only project, sorry!" )
51+
3652
3753def get_version ():
3854 """Retrieves package version from the file."""
You can’t perform that action at this time.
0 commit comments