Skip to content

Commit

Permalink
Fix demo dependencies
Browse files Browse the repository at this point in the history
Scope demos are not avaliable on python 2
  • Loading branch information
microdaq committed Aug 27, 2019
1 parent b843dd8 commit 912eb91
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions install/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def invalid_python_version():
print('Python2.6 and above are supported!')
sys.exit(1)


PYMLINK_VERSION = 'py_mlink'
os_name = platform.system()

Expand All @@ -29,6 +28,13 @@ def invalid_python_version():

darwin_lib_name = 'libmlink.dylib'
darwin_lib_path = '/usr/local/lib/'
demos_dependencies = []

if sys.version_info[0] == 2:
demos_dependencies = ["matplotlib"]

if sys.version_info[0] == 3:
demos_dependencies = ["numpy", "matplotlib", "pyqt5", "pyqtgraph"]

# Check python platform version
if platform.architecture()[0] == '32bit':
Expand Down Expand Up @@ -92,18 +98,12 @@ def invalid_python_version():
name='PyMLink',
version='1.3.0',
author='Lukas Wit',
author_email='lukas.w@embedded-solutions.pl',
author_email='support@embedded-solutions.pl',
url='www.microdaq.org',
description='Python 2.6 and above binding of MLink library.',
license='BSD',
packages=[PYMLINK_VERSION],
package_dir={PYMLINK_VERSION: PYMLINK_VERSION},
package_data=pack_data,
extras_require={
'demos':[
'numpy',
'pyqt5',
'pyqtgraph'
]
}
extras_require={'demos': demos_dependencies}
)

0 comments on commit 912eb91

Please sign in to comment.