1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

Python 3.5+ include scandir

This commit is contained in:
Paweł Jastrzębski
2015-09-15 15:44:52 +02:00
parent 7b3bf4618f
commit 14f677ec68
5 changed files with 26 additions and 13 deletions

View File

@@ -11,17 +11,17 @@ Usage (Linux):
Usage (Mac OS X):
python3 setup.py py2app
"""
from sys import platform, version_info, argv
from kcc import __version__
if version_info[0] != 3:
print('ERROR: This is Python 3 script!')
exit(1)
NAME = 'KindleComicConverter'
VERSION = __version__
MAIN = 'kcc.py'
extra_options = {}
if platform == 'darwin':
from setuptools import setup
from os import chmod, makedirs, system
@@ -136,10 +136,12 @@ else:
'Pillow>=2.8.2',
'psutil>=3.0.0',
'python-slugify>=1.1.3',
'scandir>=1.1.0',
],
zip_safe=False,
)
if version_info[1] < 5:
extra_options['install_requires'].append('scandir>=1.1.0')
setup(
name=NAME,