From 5356234e8e8702f8a7d8da409dce4e9db4a37a51 Mon Sep 17 00:00:00 2001 From: Michael Strain Date: Wed, 20 Jun 2018 11:35:30 -0400 Subject: [PATCH] Issue #11: Only requiring enum34 on <3.4 python enum34 isn't intended to be used on python >3.3. Relevent links: https://github.com/pyinstaller/pyinstaller/issues/3146 https://bitbucket.org/stoneleaf/enum34/issues/19/enum34-isnt-compatible-with-python-36 --- nifpga/nifpga.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nifpga/nifpga.py b/nifpga/nifpga.py index 4d45795..05bd993 100644 --- a/nifpga/nifpga.py +++ b/nifpga/nifpga.py @@ -8,7 +8,7 @@ StatusCheckedLibrary, LibraryNotFoundError) import ctypes -from enum import Enum # Third-party enum34 +from enum import Enum class DataType(Enum): diff --git a/setup.py b/setup.py index 6d2eb65..9306443 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ def get_long_description(): long_description=get_long_description(), version=get_version(), packages=find_packages(), - install_requires=['enum34', 'future'], + install_requires=['enum34;python_version<"3.4"', 'future'], package_data={'nifpga': ['VERSION']}, author="National Instruments", url="https://github.com/ni/nifpga-python",