Add python version constraint python>=2.7
The 'swift' command from v3.0.0 does not work in Python 2.6, bacause some code is incompatible with Python 2.6 This patch is to add a constraint of python version Change-Id: I5197cba0c2cd3135d08498df827a52f8bba98d4d Closes-bug: #1590334
This commit is contained in:
parent
07c960d46f
commit
13494098e2
6
setup.py
6
setup.py
@ -15,7 +15,11 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
|
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
|
||||||
import setuptools
|
import setuptools, sys
|
||||||
|
|
||||||
|
if sys.version_info < (2, 7):
|
||||||
|
sys.exit('Sorry, Python < 2.7 is not supported for'
|
||||||
|
' python-swiftclient>=3.0')
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
setup_requires=['pbr'],
|
setup_requires=['pbr'],
|
||||||
|
Loading…
Reference in New Issue
Block a user