[globus-python] Latest pyGlobus

Robert Olson olson at mcs.anl.gov
Fri Jan 31 13:44:19 CST 2003


here it is:


import string
import sys

from os.path import normpath
import os

GLOBUS_LOCATION = os.getenv("GLOBUS_LOCATION")

dep = sys.argv[-1]

libs = ["globus_common_win32dbgthr",
         "globus_io_win32dbgthr",
         "globus_oldgaa",
         "globus_sslutils",
         "globus_opensslmodule",
         "globus_gss_assist",
         "globus_gssapi",
         "libeay32",
         "ssleay32",
         "globus_gass_copy_win32dbgthr",
         "globus_gass_transfer_win32dbgthr",
         "globus_gridftp_client_win32dbgthr",
         "globus_gridftp_control_win32dbgthr",
         ]

winlibs = ["user32",
            "advapi32",
            "gdi32",
            "ws2_32",
            "mswsock"]

libs_str = string.join(map(lambda a: "-l%s" % (a), libs))
winlibs_str = string.join(map(lambda a: "-l%s" % (a), winlibs))

libdirs = ["%s/lib" % (GLOBUS_LOCATION) ]

incdirs = ["%s/include/threaded" % (GLOBUS_LOCATION),
            "%s/include" % (GLOBUS_LOCATION)]

libdirs_str = string.join(map(lambda a: "-L%s" % (normpath(a)), libdirs))
incdirs_str = string.join(map(lambda a: "-I%s" % (normpath(a)), incdirs))

allowed_deps = ["globus_common",
                 "globus_ftp_client",
                 "globus_ftp_control",
                 "globus_gass_copy",
                 "globus_gass_transfer",
                 "globus_io"]

if dep not in allowed_deps:
     print "ERROR: this dependency not allowed"
     sys.exit(1)

print "GLOBUS_CFLAGS = "
print "GLOBUS_INCLUDES = ", incdirs_str
print "GLOBUS_LIBS = ", winlibs_str
print "GLOBUS_PKG_LIBS = ", libs_str
print "GLOBUS_LDFLAGS = ", libdirs_str




At 11:36 AM 1/31/2003 -0800, Keith Jackson (DSD staff) wrote:
>That sounds reasonable. It should work for the IBM AIX version that 
>doesn't have GPT also. Want to let me take a look at the hacked 
>globus-makefile-header?
>thx,
>--keith
>
>Robert Olson wrote:
>>Actually, I'm using your setup.py with a hacked globus-makeifle-whatever 
>>script that just says what happens to be needed, with a mod to the 
>>setup.py to find globus-makefile-header.py if it's there. works great..
>>At 06:18 PM 1/30/2003 -0800, Keith Jackson (DSD staff) wrote:
>>
>>>Ivan,
>>>Bob Olson and folks have a setup.py file that works on windows. Maybe 
>>>now is a good time to begin the discussion about how we integrate that 
>>>into the main release. It may be as simple as just checking if we're on 
>>>win32 and using a hard coded set of libraries and includes.
>>>
>>>Bob, do you want to comment on what the state of your setup.py file is? 
>>>Do you think we will be able to integrate it in?
>>>thx,
>>>--keith
>>>
>>>Ivan R. Judson wrote:
>>>
>>>>I was a bit dismayed to read that the latest pyglobus setup.py is 
>>>>looking to
>>>>see if GPT is installed, and failing if not. GPT isn't supported on windows
>>>>(as far as I know); is there a way to get the latest pyGlobus installed on
>>>>windows (sans GPT)?
>>>>--Ivan
>>>
>>>
>>>
>>>--
>>>----------------------------------------------------------------
>>>Keith R. Jackson                        KRJackson at lbl.gov
>>>Secure Grid Technologies Group          (510) 486-4401
>>>Lawrence Berkeley National Laboratory   http://www-itg.lbl.gov/~kjackson/
>
>
>--
>----------------------------------------------------------------
>Keith R. Jackson                        KRJackson at lbl.gov
>Secure Grid Technologies Group          (510) 486-4401
>Lawrence Berkeley National Laboratory   http://www-itg.lbl.gov/~kjackson/




More information about the ag-dev mailing list