Require win_unicode_console on Windows Python 3.5
This commit is contained in:
parent
8cf1997460
commit
dd99417e7b
@ -10,10 +10,6 @@ Installation
|
|||||||
Instaloader is written in Python, thus ensure having
|
Instaloader is written in Python, thus ensure having
|
||||||
`Python <https://www.python.org/>`__ (at least version 3.5) installed.
|
`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
|
If you have `pip <https://pypi.python.org/pypi/pip>`__ installed, you
|
||||||
may install Instaloader using
|
may install Instaloader using
|
||||||
|
|
||||||
|
8
setup.py
8
setup.py
@ -3,6 +3,7 @@
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
@ -21,6 +22,11 @@ def get_version():
|
|||||||
if sys.version_info < (3, 5):
|
if sys.version_info < (3, 5):
|
||||||
sys.exit('Instaloader requires Python >= 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(
|
setup(
|
||||||
name='instaloader',
|
name='instaloader',
|
||||||
version=get_version(),
|
version=get_version(),
|
||||||
@ -32,7 +38,7 @@ setup(
|
|||||||
description='Download pictures (or videos) along with their captions and other metadata '
|
description='Download pictures (or videos) along with their captions and other metadata '
|
||||||
'from Instagram.',
|
'from Instagram.',
|
||||||
long_description=open(os.path.join(SRC, 'README.rst')).read(),
|
long_description=open(os.path.join(SRC, 'README.rst')).read(),
|
||||||
install_requires=['requests>=2.4'],
|
install_requires=requirements,
|
||||||
python_requires='>=3.5',
|
python_requires='>=3.5',
|
||||||
entry_points={'console_scripts': ['instaloader=instaloader:main']},
|
entry_points={'console_scripts': ['instaloader=instaloader:main']},
|
||||||
zip_safe=True,
|
zip_safe=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user