From: Matthias B. <ba...@ir...> - 2004-07-29 10:05:11
|
Timothy Stranex wrote: > On Thu, 2004-07-29 at 03:15, brett hartshorn wrote: > >>setup.py says: >>ERROR: [Errno 2] No such file or directory: '../ode/config/user-settings' >>Aborting! > > You either need to extract the ODE sources to a directory 'ode' in the > same directory that contains 'pyode'. Alternatively, you can create a > symlink to the ODE sources. Either that, or modify the variable ODE_BASE in the setup script. I have updated the file INSTALL that mentions the distutils now. > I think we should add an option to setup.py to let users tell it where > the ODE sources are kept Agreed. However, I don't know what the "official" way is to introduce new options to the setup script. There's the possibility to have a setup.cfg file where you can keep default parameters that can also modified on the command line, but I haven't seen anything that lets me define new parameters. By the way, what's the preferred location for the ODE include files and libs on Linux? Should the script use something like /usr/include and /usr/lib as default paths? Or do you actually keep ODE in a separate directory? And another thing, I just realized that since Pyrex 0.9.3 we don't have to parse the ODE user-settings file anymore because it finally puts the typedef name into the generated C file. This means wherever "dReal" is used in the *.pyx file it will remain "dReal" in the C file and will not be replaced by "float" or "double". So we don't have to care anymore if ODE was compiled using single or double precision. We will automatically use the correct precision. I'll commit the modified setup script later today. Or are there any objections (i.e. is there a reason why you can't upgrade to Pyrex 0.9.3)? > or simply whether the user wants it to be compiled with double or float precision This decision is already made when ODE itself is compiled. There's no choice anymore for PyODE. But as I said above, with Pyrex 0.9.3 all this is obsolete anyway. - Matthias - |