<div dir="ltr">Thanks Mathieu, <br><br>I think MacPorts will be the easiest way (all dependencies are available). <br>I could even base the installation script on  "port" commands. <br>The major problem will be to compile Qt4, which takes hours and requires X11.<br>
<br>thnks, again. <br>Jaime. <br><br><br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 6:44 PM, Mathieu Prevot <span dir="ltr"><<a href="mailto:mathieu.prevot@gmail.com">mathieu.prevot@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2008/9/24 Jaime Huerta Cepas <<a href="mailto:jhuerta@cipf.es">jhuerta@cipf.es</a>>:<br>

<div><div></div><div class="Wj3C7c">> Hi all,<br>
><br>
> I have developed a set python libraries that provide several scientific<br>
> methods to analyse and visualize certain type of biological data.  This<br>
> libraries are based on many external python modules, such as python-mysql<br>
> python-sip or python-qt4. I use GNU/linux to develop my tools and I found no<br>
> problems into installing all dependencies, however it does not seem to be<br>
> that easy on MacOS. I am sure that all the dependencies (qt4, pyqt4 ,<br>
> mysqldb, scipy, numpy) are cross platform, but when you are trying to<br>
> publish your tool in an academic journal, most referees (many of them using<br>
> MacOS) expect some kind of straightforward installation process for the<br>
> tool.<br>
><br>
> I wonder if there would be a way in which I could compile all the<br>
> dependencies and libraries in a MacOs system and then building a static<br>
> universal binary that I can distribute. I guess  it should be possible, but<br>
> I am not sure how difficult it might be, and whether all dependencies (qt4<br>
> is huge) can be packaged together.<br>
<br>
</div></div>IMHO this is too complex to commit. Macport is a way to do what you<br>
want, but packages may not be up to date enough. Maybe the easiest and<br>
simplest way for you to do this is to write a script that will<br>
download, compile and install everything.<br>
<br>
The script should work like:<br>
<br>
sudo all_in_one_script.py<br>
<br>
and then wait for jobs to be done. Your script will need to know if a<br>
package was sucessfully installed and then continue or take steps and<br>
say it. For a complex set of dependencies, I recommend you to write<br>
Makefiles.<br>
<br>
For instance, in pseudo-code:<br>
if /usr/local/lib/libfoo.dylib doesn't exist<br>
  download foo<br>
  install foo<br>
<br>
if python-module foo doesn't exist<br>
  download foo<br>
  python foo/setup.py install<br>
<br>
etc<br>
<br>
HTH<br>
<font color="#888888">Mathieu<br>
<br>
</font></blockquote></div><br></div>