Commit 5cedb573 authored by Projects's avatar Projects

Pyoattnusb turned into a python package

parent e89cdc69
......@@ -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)
#!/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
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',
],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment