mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
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:
@@ -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},
|
||||
)
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user