Skip to content

Instantly share code, notes, and snippets.

@apatrushev
Created July 14, 2017 15:32
Show Gist options
  • Save apatrushev/e3005e046c7947e147dadeab1e8f8efa to your computer and use it in GitHub Desktop.
Save apatrushev/e3005e046c7947e147dadeab1e8f8efa to your computer and use it in GitHub Desktop.
Environment markers in extras_require
from setuptools import setup
install_requires = [
'wheel',
'PyQt5==5.7.1',
'appdirs==1.4.0',
'lxml==3.6.4',
'pip-wrapper>=0.2.3,<0.3',
# 'bad-python-version ; python_full_version!="3.5.3"',
]
setup(
name='application-base',
version='0.2',
packages=[],
install_requires=install_requires,
extras_require={
'release': [
'awscli',
],
'build': [
'pyinstaller>=3.2,<3.3 ; sys_platform=="win32" or sys_platform=="linux"',
# https://github.com/pyinstaller/pyinstaller/tarball/b78bfe530cdc2904f65ce098bdf2de08c9037abb
'pyinstaller==3.3.dev0+b78bfe5 ; sys_platform=="darwin"',
'requests',
]
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment