Unverified Commit ff69a106 authored by CHARLES's avatar CHARLES 🐧
Browse files

Moved files to lib/

parent 2af5622c
Erwan BODERE <erwan.bodere@ifremer.fr>
F. PAUL <fpaul@ifremer.fr>
Fabien CADORET <fcadoret@br152-128.ifremer.fr>
Frederic PAUL <fpaul@hancock.ifremer.fr>
Pierre MAISSIAT <pmaissia@ananda.ifremer.fr>
Sylvain Herlédan <sylvain.herledan@shadowz.sytes.net>
Thibaut CHARLES <thibaut.charles@ifremer.fr>
bcauseur <bcauseur@sii.fr>
jfpiolle <jfpiolle@ifremer.fr>
medspi <medspi@br156-133.ifremer.fr>
pifgold <pifgold@free.fr>
recursive-include downloader/conf *
......@@ -3,3 +3,22 @@
# Downloader daemon
Checks online services for changed in data files, and downloads them when needed.
# Installation
## Conda
```
# Create conda env
conda env create -f environment.yaml
# Activate created env
conda activate downloader
# Install the downloader
./setup.py install
```
### Conda link issues
If `./setup.py install` fails with a linker error related to unlzw, delete the file in `$CONDA_PREFIX/compiler_compat/ld`
#!/usr/bin/env python
#
# -*- coding: UTF-8 -*-
#
from downloader.scheduler.sc.Scheduler import Scheduler
if __name__ == "__main__":
scd = Scheduler()
scd.main()
#!/usr/bin/env python
#
# -*- coding: UTF-8 -*-
#
from downloader.synchronisation.DownloadSync import DownloadSync
if __name__ == "__main__":
ds = DownloadSync()
ds.main()
......@@ -207,15 +207,6 @@ if [ ! -z ${LOG_FILE} ] && [ ! -d `basename ${LOG_FILE}` ]; then
exit 1
fi
################################################################
### VERIFY DOWNLOADER INSTALLATION
################################################################
export DOWNLOADERPACKAGENAME=`python -c 'import sys; import os; t=__import__("downloader"); print(os.path.dirname(t.__file__))' 2> /dev/null`
if [ -z ${DOWNLOADERPACKAGENAME} ]; then
echo "Error: downloader package is not installed"
exit 1
fi
echo "Environment OK, Starting the configuration check ..."
################################################################
......
#!/usr/bin/env python
# $Id$
#import sys
# We don't want to use 'from dchecktools import X' all the time, so we add
# the dchecktools directory to the search path:
#import dchecktools
#libpath = dchecktools.__path__[0]
#if libpath not in sys.path:
# sys.path.insert(0, libpath)
#del dchecktools
from dchecktools import dcheck
dcheck.main()
#!/usr/bin/env python
# $Id$
#import sys
# We don't want to use 'from dchecktools import X' all the time, so we add
# the dchecktools directory to the search path:
#import dchecktools
#libpath = dchecktools.__path__[0]
#if libpath not in sys.path:
# sys.path.insert(0, libpath)
#del dchecktools
from dchecktools import dreport
dreport.main()
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