1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-11-23 10:42:30 +01:00

Require win_unicode_console on Windows Python 3.5

This commit is contained in:
Alexander Graf 2017-08-24 15:40:41 +02:00
parent 8cf1997460
commit dd99417e7b
2 changed files with 7 additions and 5 deletions

View File

@ -10,10 +10,6 @@ Installation
Instaloader is written in Python, thus ensure having
`Python <https://www.python.org/>`__ (at least version 3.5) installed.
If you intend to use this tool under Windows, it is recommended
to install
`win-unicode-console <https://pypi.python.org/pypi/win_unicode_console>`__.
If you have `pip <https://pypi.python.org/pypi/pip>`__ installed, you
may install Instaloader using

View File

@ -3,6 +3,7 @@
import re
import sys
import os
import platform
from setuptools import setup
@ -21,6 +22,11 @@ def get_version():
if sys.version_info < (3, 5):
sys.exit('Instaloader requires Python >= 3.5.')
requirements = ['requests>=2.4']
if platform.system() == 'Windows' and sys.version_info < (3, 6):
requirements.append('win_unicode_console')
setup(
name='instaloader',
version=get_version(),
@ -32,7 +38,7 @@ setup(
description='Download pictures (or videos) along with their captions and other metadata '
'from Instagram.',
long_description=open(os.path.join(SRC, 'README.rst')).read(),
install_requires=['requests>=2.4'],
install_requires=requirements,
python_requires='>=3.5',
entry_points={'console_scripts': ['instaloader=instaloader:main']},
zip_safe=True,