Changeset 2276


Ignore:
Timestamp:
Nov 18, 2008 2:05:40 PM (10 years ago)
Author:
hazmat
Message:

keep compilation result on error, log tmp dir and install-swig-py cmd

Location:
ore.recipe.svnlib/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ore.recipe.svnlib/trunk/buildout.cfg

    r2240 r2276  
    22 
    33develop = . 
    4 parts = svn python 
     4parts = svn  
    55 
    66[svn] 
  • ore.recipe.svnlib/trunk/ore/recipe/svnlib/__init__.py

    r2241 r2276  
    5252        logger.info('Unpacking and configuring') 
    5353        setuptools.archive_util.unpack_archive(fname, tmp) 
    54            
     54        cmd = "" 
     55         
    5556        here = os.getcwd() 
    5657        if not os.path.exists(dest): 
     
    8182                system("make install") 
    8283                system("make swig-py") 
     84                cmd = "make install-swig-py DESTDIR=%s swig_py_libdir=/lib swig_pydir=/lib/python/libsvn swig_pydir_extra=/lib/python/svn"%dest 
    8385                cmd = "make install-swig-py DESTDIR=%s"%dest #swig_py_libdir=/lib swig_pydir=/lib/python/libsvn swig_pydir_extra=/lib/python/svn"%dest 
     86 
    8487                system( cmd ) 
    8588            finally: 
    8689                os.chdir(here) 
    8790        except: 
    88             shutil.rmtree(dest) 
     91             
     92            logger.error("Error in Compilation, result left in working directory %s, install swig-py cmd %s"%(tmp, cmd )) 
    8993            raise 
    90  
     94        shutil.rmtree(dest) 
     95         
    9196        return dest 
    9297 
  • ore.recipe.svnlib/trunk/setup.py

    r2239 r2276  
    2323setup( 
    2424    name = name, 
    25     version = "0.1.4", 
     25    version = "0.1.5", 
    2626    author = "Kapil Thangavelu", 
    2727    author_email = "kapil.foss@gmail.com", 
     
    4545    entry_points = {'zc.buildout': 
    4646                    ['default = %s:Recipe' % name]}, 
    47     zip_safe = True, 
     47    zip_safe = False, 
    4848    ) 
Note: See TracChangeset for help on using the changeset viewer.