Skip to content

Commit

Permalink
Added gpib-ctypes dependecy as an optional replacement for the linux-…
Browse files Browse the repository at this point in the history
…gpib python package
  • Loading branch information
PatrickBaus committed Jul 14, 2021
1 parent fe63350 commit d8946ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions async_gpib/async_gpib.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@
import logging

# AsyncGpib
import Gpib
import gpib
try:
import Gpib
import gpib
except ModuleNotFoundError:
from gpib_ctypes import Gpib
from gpib_ctypes import gpib

class AsyncGpib:
@property
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='async_gpib',
version='1.0.0',
version='1.0.1',
author='Patrick Baus',
author_email='patrick.baus@physik.tu-darmstadt.de',
url='https://github.com/PatrickBaus/pyAsyncGpib',
Expand All @@ -23,5 +23,8 @@
license='GPL',
license_files=('LICENSE',),
packages=['async_gpib'], # same as name
install_requires=['gpib-ctypes',], # external packages as dependencies
install_requires=[], # external packages as dependencies
extras_require={
'GPIB': ['gpib-ctypes>=0.3',],
}
)

0 comments on commit d8946ee

Please sign in to comment.