Changeset 18981

Show
Ignore:
Timestamp:
07/07/06 16:41:41 (2 years ago)
Author:
allenb
Message:

Add code to install header files on windows.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PyJuggler/trunk/buildwin32.py

    r18525 r18981  
    9393   installLibs(prefix) 
    9494   installMods(prefix) 
     95   installHeaders(prefix) 
    9596   installExamples(prefix) 
    9697 
     
    106107   mkinstalldirs(os.path.join(prefix, python_pkg_dir)) 
    107108   mkinstalldirs(os.path.join(prefix, 'share', 'pyjuggler')) 
     109   mkinstalldirs(os.path.join(prefix, 'include')) 
    108110 
    109111def installDir(startDir, destDir, allowedExts = None, disallowedExts = None, 
     
    191193      shutil.copy2(f, destdir) 
    192194 
     195def installHeaders(prefix): 
     196   print "Installing header files ..." 
     197   destdir = os.path.join(prefix, 'include', 'pyjutil') 
     198   srcdir  = os.path.join(pyj_dir, 'pyjutil') 
     199   installDir(srcdir, destdir, allowedExts = [".h",]) 
     200       
    193201def installExamples(prefix): 
    194202   print "Installing example code ..." 
     
    217225   try: 
    218226      status = os.spawnl(os.P_WAIT, devenv_cmd, 'devenv', solution_file) 
    219  
     227       
    220228      if status == 0: 
    221229         print "Proceed with PyJuggler installation [y]: ",