Browse Source

Installation procedures updated

Change-Id: Ib8c1a2765be4724f18f631d4a761d9309f280579
changes/13/604513/1 0.3.0
Nicola Peditto 4 years ago
parent
commit
1b20493251
  1. 4
      MANIFEST.in
  2. 0
      scripts/lr_configure
  3. 2
      scripts/lr_install
  4. 7
      setup.cfg
  5. 16
      setup.py

4
MANIFEST.in

@ -4,8 +4,8 @@ include templates/plugins.example.json
include templates/services.example.json
include etc/systemd/system/s4t-lightning-rod.service
include etc/logrotate.d/lightning-rod.log
include scripts/install_lr.py
include scripts/configure_lr.py
include scripts/lr_install
include scripts/lr_configure
include AUTHORS
include ChangeLog

0
scripts/configure_lr.py → scripts/lr_configure vendored

2
scripts/install_lr.py → scripts/lr_install

@ -99,6 +99,8 @@ from subprocess import call
call(["systemctl", "enable", "lightning-rod.service"])
call(["systemctl", "daemon-reload"])
"""
os.system('cp ' + py_dist_pack + '/iotronic_lightningrod/scripts/'
+ 'configure_lr.py /usr/bin/configure_lr')
os.chmod('/usr/bin/configure_lr', 0o744)
"""

7
setup.cfg

@ -21,6 +21,13 @@ classifier =
[files]
packages =
iotronic_lightningrod
data_files =
bin/ = scripts/*
/iotronic_lightningrod/templates = templates/*
/iotronic_lightningrod/etc/iotronic = etc/iotronic/iotronic.conf
/iotronic_lightningrod/etc/logrotate.d = etc/logrotate.d/lightning-rod.log
/iotronic_lightningrod/etc/systemd/system = etc/systemd/system/s4t-lightning-rod.service
[build_sphinx]
source-dir = doc/source

16
setup.py

@ -28,20 +28,4 @@ setuptools.setup(
setup_requires=['pbr>=1.8'],
pbr=True,
include_package_data=True,
data_files=[
('/iotronic_lightningrod/etc/iotronic',
['etc/iotronic/iotronic.conf']),
('/iotronic_lightningrod/scripts', ['scripts/install_lr.py']),
('/iotronic_lightningrod/scripts', ['scripts/configure_lr.py']),
('/iotronic_lightningrod/templates',
['templates/settings.example.json']),
('/iotronic_lightningrod/templates',
['templates/plugins.example.json']),
('/iotronic_lightningrod/templates',
['templates/services.example.json']),
('/iotronic_lightningrod/etc/logrotate.d',
['etc/logrotate.d/lightning-rod.log']),
('/iotronic_lightningrod/etc/systemd/system/',
['etc/systemd/system/s4t-lightning-rod.service']),
],
)

Loading…
Cancel
Save