Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Allow python 2.7.5 support for RHEL/CENTOS/OL7 #308

@cocampbe

Description

@cocampbe

Scenario/Intent

Add code to setup.py to check for python version. No need to require futures if you actually use python3. This code will bypass future if you are already using 3.

from setuptools import find_packages
from setuptools import setup
import sys

is_future = 'future>=0.15.2' if sys.version_info[0] < 3 else ''

setup(name='hpOneView',
      version='4.0.0',
      description='HPE OneView Python Library',
      url='https://github.com/HewlettPackard/python-hpOneView',
      download_url="https://github.com/HewlettPackard/python-hpOneView/tarball/v4.0.0",
      author='Hewlett Packard Enterprise Development LP',
      author_email='oneview-pythonsdk@hpe.com',
      license='MIT',
      packages=find_packages(exclude=['examples*', 'tests*']),
      keywords=['oneview', 'hpe'],
      install_requires=[is_future])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions