Skip to content

Commit

Permalink
Merge pull request #2111 from tianon/environment-markers
Browse files Browse the repository at this point in the history
Use "environment markers" for conditional install_requires
  • Loading branch information
Kodiologist committed Jul 9, 2021
2 parents 7fe4923 + 7b63c71 commit 8347a98
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions setup.py
Expand Up @@ -61,19 +61,16 @@ def run(self):
# https://github.com/pypa/setuptools/issues/456
return install.run(self)

install_requires = [
'rply>=0.7.7',
'funcparserlib>=0.3.6',
'colorama']
if sys.version_info < (3, 9):
install_requires.append('astor>=0.8')
if os.name == 'nt':
install_requires.append('pyreadline>=2.1')

setup(
name=PKG,
version=__version__,
install_requires=install_requires,
install_requires=[
'rply>=0.7.7',
'funcparserlib>=0.3.6',
'colorama',
'astor>=0.8 ; python_version < "3.9"',
'pyreadline>=2.1 ; os_name == "nt"',
],
cmdclass=dict(install=Install),
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 8347a98

Please sign in to comment.