Compiling Gildas with your custom Python (if any)
If you compiled and installed a custom version of Python and the
needed modules, then you can run the usual Gildas administrative
scripts:
cd <installation-directory>
tar xvzf gildas-src-jul14.tgz
cd gildas-src-jul14
source admin/gildas-env.sh [-c <compiler>]
# read carefully the messages (in particular those for Python)
make
make install
# read the last instructions
|
If you followed correctly the installation of your custom Python and
the compilation of Gildas, Gildas is now binded to your custom Python
libraries. You have then 2 possibilities:
- if you use Python inside Gildas (i.e. SIC
PYTHON
commands), you can safely revert the python command to its
original state. Gildas will use your custom Python libraries,
including its specific syntax and rules.
- if you use the Gildas-Python modules (e.g. pygreg, pyclass) in
Python, then you must import them from your custom Python
executable. Either you keep it permanently in your $PATH, either
you call it explictly by a custom name (e.g. python34) before
importing the modules. Here also this means you have to use the
correct syntax and rules.