1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-11-01 20:10:55 +01:00
lodel2_mirror/README
Yann 8316ab82ff Configure autotools for distributing lodel2
IMPORTANT : tests are broken. See details below

A new lodel/buildconf.py.ini file created. It will be transformed to a lodel/buildconf.py file by ./configure .
This file goal is to store build time constant (for the moment the presence of pymongo).
You have to build lodel2 before being able to run the tests.
2016-08-30 14:01:25 +02:00

35 lines
1.2 KiB
Text

Dependencies :
lodel2 :
with pip : see requirements.txt
debian stable : python3 python3-lxml python3-jinja2 python3-werkzeug python3-pymongo uwsgi-plugin-python3 mongodbd
build & install :
debian stable : autoconf automake make
Build & install :
./bootstrap.sh
./configure
make
make install
Doxygen documentation generation :
dependencies: doxypy doxygen graphviz
doxygen
Dynamic code generation :
python3 scripts/refreshdyn.py examples/em_test.pickle OUTPUTFILE.py
Instance creation :
Use the script in scripts/create_instance.sh
Usage : scripts/create_instance.sh instance_name instance_dir [lodel_libdir]
Instance operations :
A Makefile is written to allow running most of operations. Existing targets are for the moment :
make dyncode # Leapi dynamic code creation ( in leapi_dyncode.py in lodel2 instance root dir)
make init_db # Call migration handlers to tell them to init all needed databases. (note : this target has dyncode as dependencie)
make list_hooks # List all the hooks registered
Instance loader uppdate :
If the install/loader.py is updated you can update instance's loader.py using
scripts/create_instance.sh -u INSTANCE_PATH