dev-python/pslab-python: new package

Official library for communicating with the Pocket Science Lab, a
universal USB-powered board featuring an oscilloscope, multimeter, logic
analyser and many more.

Signed-off-by: Marek Szuba <marecki@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
This commit is contained in:
Marek Szuba
2019-06-28 19:38:52 +01:00
parent 77ddb23bfe
commit 1abca237df
5 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
--- a/setup.py
+++ b/setup.py
@@ -50,6 +50,5 @@
packages=find_packages(),
#scripts=["PSL/bin/"+a for a in os.listdir("PSL/bin/")],
package_data={'': ['*.css','*.png','*.gif','*.html','*.css','*.js','*.png','*.jpg','*.jpeg','*.htm','99-pslab.rules']},
- cmdclass={'install': CustomInstall},
)

View File

@@ -0,0 +1,11 @@
--- a/PSL/SENSORS/AD9833.py
+++ b/PSL/SENSORS/AD9833.py
@@ -3,7 +3,7 @@
class AD9833:
- if sys.version.major == 3:
+ if sys.version_info.major == 3:
DDS_MAX_FREQ = 0xFFFFFFF - 1 # 24 bit resolution
else:
DDS_MAX_FREQ = eval("0xFFFFFFFL-1") # 24 bit resolution