The following is the beginning of the optional phcpack spkg, which
tries to get the architecture using python.  I am hopeless at bash,
I'm sure there are ways to do it that way too:

#!/usr/bin/env python
import os
uname = os.uname()
main_arch = uname[0]
sub_arch = uname[-1]

then for example

if main_arch == "Darwin":
    if sub_arch == "i386":
        # Do intel mac stuff, etc

Hope that helps,
Marshall


On Jun 12, 3:52 pm, Stephen Hartke <har...@gmail.com> wrote:
> Now that the semester is over, I'm trying to finish the spkg for lp_solve.
> lp_solve does not use autoconf and make, but rather has its own specialized
> build scripts for different platforms (mainly Windows, Mac OS X, and
> Linux/UNIX).  What is the recommended way of determining which platform Sage
> is running on?
>
> Thanks!
> Stephen
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to