Heh, that was actually easier than thought. The Enthought distribution came along with scons installed. /software/python-enthought-dis/epd-7.3-2-rh5-x86_64/bin/scons
So no problem building. And then making this shell file, to use the enthought: relax2 #!/software/python-enthought-dis/epd-7.3-2-rh5-x86_64/bin/python2.7 import relax relax.start(profile_flag=False) Best Troels Troels Emtekær Linnet Ved kløvermarken 9, 1.th 2300 København S Mobil: +45 60210234 2013/5/2 Edward d'Auvergne <[email protected]> > Hi Troels, > > In the future, for such questions I would recommend asking on the > relax development mailing list (relax-devel att gna.org). The answer > is complicated as SCons has problems with multiple Python > installations. You have to have scons installed for the Python > version you are targeting and no other SCons versions present. I have > managed to get it to work, but the scons must be run with the correct > Python version and also then separately find the correct Python > version for compilations (these are unfortunately not coupled in > SCons). There is one cheating way and that is to use the > 'devel_scripts/manual_c_module.py' script, just modifying it to point > your Python version. This script is mainly to get around these bad > design issues in SCons for when multiple Python versions are present, > as I have lots of different Python versions compiled into a special > directory for testing relax (every version from 1.0 to 3.3) and SCons > really cannot handle this. > > As for using Enthought Python, I don't know how well relax will run in > such an environment. It'll be interesting to see what happens. > > Regards, > > Edward > > > On 2 May 2013 17:26, Troels Emtekær Linnet <[email protected]> wrote: > > Dear Relax users. > > > > I am trying to build relax, from source, using scons. > > > > We have the python enthought distribution installed, to solve most of our > > dependencies, > > and we install packages here, so each computer can use this shared > > installation. > > > > How I can I tell scons, to use python2.7 to build relax? > > I think it tries to use my local python installation, but here I have not > > installed > > minfx, ,wxPython. > > > > [tlinnet@tomat ~/software]$ cd relax-trunk/ > > [tlinnet@tomat relax-trunk]$ scons > > scons: Reading SConscript files ... > > The dependency 'minfx' has not been installed (see > > https://gna.org/projects/minfx/). > > [tlinnet@tomat relax-trunk]$ python2.7 > > Enthought Python Distribution -- www.enthought.com > > Version: 7.3-2 (64-bit) > > > > Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 11 2012, 17:52:16) > > [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 > > Type "credits", "demo" or "enthought" for more information. > >>>> import minfx > >>>> import readline > >>>> import wx > >>>> import numpy > >>>> import scipy > > > > Best > > Troels > > > > > > Troels Emtekær Linnet > > Ved kløvermarken 9, 1.th > > 2300 København S > > Mobil: +45 60210234 > > > > _______________________________________________ > > relax (http://www.nmr-relax.com) > > > > This is the relax-users mailing list > > [email protected] > > > > To unsubscribe from this list, get a password > > reminder, or change your subscription options, > > visit the list information page at > > https://mail.gna.org/listinfo/relax-users > > >
_______________________________________________ relax (http://www.nmr-relax.com) This is the relax-users mailing list [email protected] To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-users

