Add setup.py installation script

This script can be useful to install ogclient on distributions that do not have
an already built ogclient package.

It is necessary to install ogclient in the right path, so the command you have
to use looks similar to:
python3 setup.py install --prefix=/opt/opengnsys/ogclient
                         --install-lib=/opt/opengnsys/ogclient
                         --install-script=/opt/opengnsys/ogclient
more_events
Roberto Hueso Gómez 2020-06-11 14:05:51 +02:00
parent 93bbc39d4b
commit 118572c3b6
1 changed files with 13 additions and 0 deletions

13
setup.py 100644
View File

@ -0,0 +1,13 @@
from distutils.core import setup
setup(name='ogclient',
version='1.0',
description='Client for the OpenGnsys ecosystem',
author='Soleta OpenGnsys Support Team',
author_email='soporte-og@soleta.eu',
url='https://github.com/opengnsys/ogClient',
packages=['src', 'src.linux', 'src.virtual'],
scripts=['main.py'],
data_files=[('cfg', ['cfg/ogclient.json']),
('', ['LICENSE'])]
)