diff --git a/documentation/source/users/rmg/installation/anacondaDeveloper.rst b/documentation/source/users/rmg/installation/anacondaDeveloper.rst index 63d1716e74..7523ab6bec 100644 --- a/documentation/source/users/rmg/installation/anacondaDeveloper.rst +++ b/documentation/source/users/rmg/installation/anacondaDeveloper.rst @@ -133,6 +133,12 @@ Installation by Source Using Anaconda Environment for Unix-based Systems: Linux in a different conda environment. However, if convenient you can undo this linking by replacing python-jl with python3 in the second command above. Just make sure to rerun the linking command once you are done. +#. Create custom system image of RMS :: + + python -m julia.sysimage rms.so + + This will create a custom system image of Julia with RMS compiled + #. Finally, you can run RMG from any location by typing the following (given that you have prepared the input file as ``input.py`` in the current folder). :: python-jl replace/with/path/to/rmg.py input.py diff --git a/environment.yml b/environment.yml index f16342f1c5..ad7508b0f6 100644 --- a/environment.yml +++ b/environment.yml @@ -37,7 +37,7 @@ dependencies: - rmg::pydas >=1.0.3 - pydot - rmg::pydqed >=1.0.3 - - rmg::pyjulia + - conda-forge::pyjulia - pymongo - pyparsing - rmg::pyrdl diff --git a/rmgpy/rmg/reactors.py b/rmgpy/rmg/reactors.py index 3e1fab9320..4f7c9803e3 100644 --- a/rmgpy/rmg/reactors.py +++ b/rmgpy/rmg/reactors.py @@ -35,10 +35,10 @@ import sys import logging import itertools +from os.path import dirname, abspath, join, exists if __debug__: try: - from os.path import dirname, abspath, join, exists path_rms = dirname(dirname(dirname(abspath(__file__)))) from julia.api import Julia jl = Julia(sysimage=join(path_rms,"rms.so")) if exists(join(path_rms,"rms.so")) else Julia(compiled_modules=False) @@ -49,6 +49,9 @@ pass else: try: + path_rms = dirname(dirname(dirname(abspath(__file__)))) + if exists(join(path_rms, "rms.so")): + jl = Julia(sysimage=join(path_rms,"rms.so")) from pyrms import rms from diffeqpy import de from julia import Main