Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Programmable RF Attenuator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Programmable RF Attenuator
Commits
5cedb573
Commit
5cedb573
authored
Mar 13, 2024
by
Projects
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pyoattnusb turned into a python package
parent
e89cdc69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
Makefile.install
software/lib/Makefile.install
+1
-0
oattnusbtest
software/lib/oattnusbtest
+6
-2
setup.py
software/lib/setup.py
+22
-0
No files found.
software/lib/Makefile.install
View file @
5cedb573
...
...
@@ -16,3 +16,4 @@ install:
install
-m
0775
$(LIBNAME)
.a
$(LIBNAME)
.so
$(INSTALL_ROOT)
/lib
install
-m
0775
$(NAME)
test
$(INSTALL_ROOT)
/bin
install
-m
0775
$(LIBNAME)
.h usb-enum.h
$(INSTALL_ROOT)
/include
pip
install
.
--target
$(INSTALL_ROOT)
software/lib/oattnusbtest
View file @
5cedb573
#!/bin/sh
python3
-m
pyoattnusb
#!/bin/bash
# SPDX-FileCopyrightText: 2024 CERN (home.cern)
#
# SPDX-License-Identifier: LGPL-2.1-or-later
SCRIPT_DIR
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
PYTHONPATH
=
$SCRIPT_DIR
/.. python3
-m
pyoattnusb
software/lib/setup.py
0 → 100644
View file @
5cedb573
from
setuptools
import
setup
,
find_packages
import
subprocess
try
:
version
=
subprocess
.
check_output
([
'git'
,
'describe'
,
'--tags'
])
.
decode
()
.
strip
()
except
Exception
:
version
=
'0.0.0'
setup
(
name
=
'pyoattnusb'
,
version
=
version
,
packages
=
find_packages
(),
author
=
'Dimitris Lampridis'
,
author_email
=
'dimitris.lampridis@cern.ch'
,
description
=
'RF OASIS Attenuator control library'
,
url
=
'https://gitlab.cern.ch/be-cem-edl/fec/hardware-modules/rf-att-4cha'
,
classifiers
=
[
'Programming Language :: Python :: 3'
,
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)'
,
'Operating System :: OS Independent'
,
],
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment