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 3500cdb commit 295c348Copy full SHA for 295c348
setup.py
@@ -1,13 +1,18 @@
1
# coding: utf-8
2
from distutils.version import LooseVersion
3
-
4
from setuptools import find_packages, setup
+import sys
5
+from os import path
6
7
# Import README.md into long_description
-from os import path
8
-this_directory = path.abspath(path.dirname(__file__))
9
-with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
10
- long_description = f.read()
+pwd = path.abspath(path.dirname(__file__))
+
+if sys.version_info[0] > 2:
11
+ with open(path.join(pwd, 'README.md'), encoding='utf-8') as f:
12
+ long_description = f.read()
13
+else:
14
+ with open(path.join(pwd, 'README.md')) as f:
15
16
17
18
def check_setuptools():
0 commit comments