Changeset 700

Show
Ignore:
Timestamp:
08/21/07 08:25:18 (12 months ago)
Author:
daelstorm
Message:

Added stand-alone PyMucipher?; add PYMUCIPHER option to scons; don't generate messages.py from message.py.in (like in the newnet branch); Install mucous, pymuseekd, other python clients without SWIG (since PyCrypto? is an alternative)

Location:
museek+/trunk/sources
Files:
15 added
1 removed
12 modified
1 moved

Legend:

Unmodified
Added
Removed
  • museek+/trunk/sources/INSTALL

    r699 r700  
    3535# make 
    3636# make install 
     37 
     38--------------- 
     39distutils (Python's built-in installation tool) 
     40--------------- 
     41PyMucipher (requires SWIG, Python) 
     42# cd PyMucipher/ 
     43# python setup.py build 
     44# python setup.py install 
     45# (or) python setup.py install --prefix=/usr/local 
     46............... 
     47PyMuseekd, Python Tools and Clients (requires PyCrypto or PyMucipher) 
     48# cd pymuseekd/ 
     49# python setup.py build 
     50# python setup.py install 
     51# (or) python setup.py install --prefix=/usr/local 
     52--------------- 
  • museek+/trunk/sources/Mucipher/SConscript

    r399 r700  
    1616    open(str("wraphelp.c"), "w").write(open(os.path.abspath("../../Mucipher/wraphelp.c")).read()) 
    1717 
    18 if 'swig' in env['TOOLS']: 
    19     import os 
    20     SConscript(os.path.join('python', 'SConscript')) 
    21     print "SWIG found, building Python bindings for mucipher." 
     18if env['PYMUCIPHER']: 
     19        if 'swig' in env['TOOLS']: 
     20                import os 
     21                SConscript(os.path.join('python', 'SConscript')) 
     22                print "SWIG found, building Python bindings for mucipher." 
     23                print "If you get an error like: No such file or directory: 'mucipher.i'" 
     24                print "Disable with: PYMUCIPHER=0" 
     25        else: 
     26                print "WARNING: SWIG not found , NOT building Python bindings for mucipher." 
    2227else: 
    23     print "WARNING: SWIG not found, NOT building Python bindings for mucipher." 
    24 #    SConscript(os.path.join('perl', 'SConscript'))  
    25 #    can't use perl, cstring not implemented in swig-perl 
     28        print "WARNING: PyMucipher disabled, NOT building Python bindings for mucipher." 
     29        print "Enable with: PYMUCIPHER=0" 
     30        print "Looking for replacement (PyCrypto)..." 
     31        try: 
     32                import Crypto 
     33        except Exception, error: 
     34                print "PyCrypto is not available, maybe you should install it?:", error 
     35        else: 
     36                print "PyCrypto is available, PyMucipher isn't needed anyway." 
     37         
     38#SConscript(os.path.join('perl', 'SConscript')) 
     39#can't use perl, cstring not implemented in swig-perl 
     40print 
  • museek+/trunk/sources/Muhelp/SConscript

    r2 r700  
    4444 
    4545env.StaticLibrary(target = 'muhelp', source = sources) 
     46print 
  • museek+/trunk/sources/Museek/SConscript

    r85 r700  
    3232 
    3333env.StaticLibrary(target = 'museek', source = sources) 
     34print 
  • museek+/trunk/sources/Museekal/SConscript

    r2 r700  
    2020 
    2121env.StaticLibrary(target = 'museekal', source = sources) 
     22print 
  • museek+/trunk/sources/SConstruct

    r462 r700  
    3333opts.Add(BoolOption('RELEASE', 'Build for release', '')) 
    3434opts.Add(ListOption('MULOG', 'Set debug output', '', ['debug', 'cycle', 'calltrace', 'traffictime'])) 
     35opts.Add(BoolOption('PYMUCIPHER', 'Compile PyMucipher module with SWIG', ''))  
    3536opts.Add('MUSEEQTRANSLATIONS', 'Build translations for', '', ) 
    3637#['fr','de','es','it','pl','ru','pt_BR','ja','zh','sk','he', 'ar', 'cs' ] 
     
    385386f.write('RELEASE = %s\n' % (`env['RELEASE']`)) 
    386387f.write('MULOG = %s\n' % (`string.join(env['MULOG'], ',')`)) 
     388f.write('PYMUCIPHER = %s\n' % (`env['PYMUCIPHER']`)) 
    387389f.write('LOCKFLAGS = %s\n' % (`env['LOCKFLAGS']`)) 
    388390 
  • museek+/trunk/sources/Tools/SConscript

    r431 r700  
    6161env.Alias('install_muscan', install) 
    6262env.Alias('install', 'install_muscan') 
    63  
     63print "* muscan will be installed" 
    6464 
    6565env_muscand = env_libmuscan.Copy() 
     
    8080        env.Alias('install_muscand', install) 
    8181        env.Alias('install', 'install_muscand') 
    82  
     82        print "* muscand will be installed" 
    8383         
    8484 
    8585 
    8686conf.Finish() 
     87print 
  • museek+/trunk/sources/defaults.py

    r431 r700  
    2525# Debugging verbosity (debug, cycle, calltrace) 
    2626MULOG='debug' 
     27 
     28# Compile PyMucipher module with SWIG 
     29PYMUCIPHER=1 
    2730 
    2831# Do Not allow SCons to modify your CFLAGS, keep them as inputted 
  • museek+/trunk/sources/mucous/SConscript

    r85 r700  
    99targets = [] 
    1010manfile = [] 
    11 if 'swig' in env['TOOLS']: 
    12     targets.append('mucous') 
    13     manfile.append("mucous.1") 
    14     man_install = env.Install(env['DESTDIR'] + env['MANDIR'], manfile) 
    1511 
    16     install = env.Install(env['DESTDIR'] + env['BINDIR'], targets) 
    17     env.Alias('install_mucous', man_install) 
    18     env.Alias('install_mucous', install) 
    19     env.Alias('install', 'install_mucous') 
    20     SConscript(os.path.join('pymucous', 'SConscript')) 
    21     print "SWIG found, mucous will be installed" 
     12targets.append('mucous') 
     13manfile.append("mucous.1") 
     14man_install = env.Install(env['DESTDIR'] + env['MANDIR'], manfile) 
     15 
     16install = env.Install(env['DESTDIR'] + env['BINDIR'], targets) 
     17env.Alias('install_mucous', man_install) 
     18env.Alias('install_mucous', install) 
     19env.Alias('install', 'install_mucous') 
     20SConscript(os.path.join('pymucous', 'SConscript')) 
     21     
     22print "* mucous will be installed" 
     23if env['PYMUCIPHER'] and 'swig' in env['TOOLS']: 
     24        pass 
    2225else: 
    23         print "WARNING: SWIG not found, mucous will NOT be installed" 
     26        print "WARNING: PyMucipher may not be available, so you should install either PyCrypto, or PyMucipher" 
  • museek+/trunk/sources/museeq/SConscript

    r694 r700  
    321321 
    322322env.Alias('install', 'install_museeq') 
    323  
     323print 
  • museek+/trunk/sources/pymuseekd/SConscript

    r175 r700  
    11Import('env') 
    22import os 
    3  
    4 def build_setup(target, source, env): 
    5     open(str(target[0]), 'w').write( open(str(source[0]), 'r').read() ) 
    6     os.chmod(str(target[0]), 0755) 
    7     return 0 
    83 
    94try: 
     
    138        print "\nWARNING: pyexpat not found, musetup will NOT run, but will be installed." 
    149 
    15 targets = [env.Command('musetup', ['musetup.in'], build_setup)] 
     10targets = ["musetup"] 
    1611manfile = ["musetup.1"] 
    17  
     12print "* musetup will be installed" 
    1813if env["MUSETUPGTK"]: 
    1914        try: 
     
    2924        targets.append('musetup-gtk') 
    3025        manfile.append ("musetup-gtk.1") 
    31 if 'swig' in env['TOOLS']: 
    32         targets.append('mulog') 
    33         targets.append('museekcontrol') 
    34         manfile.append("mulog.1") 
    35         manfile.append("museekcontrol.1") 
    36         print "SWIG found, mulog and museekcontrol will be installed." 
    37 else: 
    38         print "WARNING: SWIG not found, mulog and museekcontrol will NOT be installed." 
     26        print "* musetup-gtk will be installed" 
     27 
     28targets.append('mulog') 
     29targets.append('museekcontrol') 
     30manfile.append("mulog.1") 
     31manfile.append("museekcontrol.1") 
     32print "* mulog will be installed" 
     33print "* museekcontrol will be installed" 
    3934 
    4035man_install = env.Install(env['DESTDIR'] + env['MANDIR'], manfile) 
     
    4540env.Alias('install', 'install_pymuseekd') 
    4641 
    47 if 'swig' in env['TOOLS']: 
    48         SConscript(os.path.join('museek', 'SConscript')) 
     42if env['PYMUCIPHER'] and 'swig' in env['TOOLS']: 
     43        pass 
     44else: 
     45        print "WARNING: PyMucipher is not going to be installed, so you should install either PyCrypto, or PyMucipher" 
     46SConscript(os.path.join('museek', 'SConscript')) 
     47print 
  • museek+/trunk/sources/pymuseekd/museek/SConscript

    r2 r700  
    1 def iface_build(target, source, env): 
    2     from muscons import IfaceGen 
    3     IfaceGen(str(target[0]), str(source[0]), str(source[1])) 
    4     return 0 
    5  
    61Import('env') 
    7 env.Command('messages.py', ['messages.py.in', '../../museekd/IfaceMessages.hh'], iface_build) 
    82 
    93files = Split("""