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:
10
setup.py
10
setup.py
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user