mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Provides environment marker (PEP-0426) to install colorama on win32 environment for installation from wheel.
This commit is contained in:
parent
50c4bacbab
commit
8d514be7a8
8
setup.py
8
setup.py
@ -53,7 +53,14 @@ requires = [
|
||||
'snowballstemmer>=1.1',
|
||||
'babel',
|
||||
]
|
||||
extras_require = {
|
||||
# Environment Marker works for wheel 0.24 or later
|
||||
':sys_platform=="win32"': [
|
||||
'colorama',
|
||||
],
|
||||
}
|
||||
|
||||
# for sdist installation with pip-1.5.6
|
||||
if sys.platform == 'win32':
|
||||
requires.append('colorama')
|
||||
|
||||
@ -197,5 +204,6 @@ setup(
|
||||
],
|
||||
},
|
||||
install_requires=requires,
|
||||
extras_require=extras_require,
|
||||
cmdclass=cmdclass,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user