Changeset 6030:7010979ab985


Ignore:
Timestamp:
08/29/07 19:16:42 (6 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Parents:
6015:344d714d7a89 (diff), 6029:e2c9515e3bd7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge

Files:
13 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r6015 r6030  
    9191 
    9292#### Build the c_lib first 
    93 if needs_c_lib_build() and os.system( "cd c_lib && scons install" ) != 0: 
    94     print "    ERROR: The c_lib did not build successfully." 
    95     sys.exit(1)  
     93if needs_c_lib_build(): 
     94    if os.system( "cd c_lib && scons install" ) != 0: 
     95        print "    ERROR: The c_lib did not build successfully." 
     96        sys.exit(1)      
    9697 
    9798include_dirs = ['%s/include'%SAGE_LOCAL, '%s/include/python'%SAGE_LOCAL, \ 
     
    732733if DEVEL: 
    733734    extra_compile_args.append('-ggdb') 
    734     ext_modules.append(hanke) 
     735    #ext_modules.append(hanke) 
    735736    #ext_modules.append(mpc) 
    736737 
     
    756757        bool -- whether or not outfile must be regenerated. 
    757758    """ 
    758  
    759759    if is_older(filename, outfile): 
    760760        print "\nBuilding %s because it depends on %s."%(outfile, filename) 
  • setup.py

    r6016 r6030  
    7979def needs_c_lib_build(): 
    8080    lib = '../../local/lib/libcsage.so' 
    81     files = os.listdir( 'c_lib' ) 
     81    try: 
     82        files = os.listdir( 'c_lib' ) 
     83    except OSError:  # during setup.py sdist 
     84        return False 
    8285    src_files = ['c_lib/' + f for f in files if is_src_file( f )] 
    8386    src_files += ['c_lib/SConstruct'] 
     
    100103    return ext == ".h" or ext == ".c" or ext == ".cc" 
    101104 
     105def needs_c_lib_build(): 
     106    lib = '../../local/lib/libcsage.so' 
     107    try: 
     108       files = os.listdir( 'c_lib/src' ) 
     109    except OSError: 
     110        return False 
     111    src_files = ['c_lib/src/' + f for f in files if is_src_file( f )] 
     112    src_files += ['c_lib/configure', 'c_lib/Makefile'] 
     113    for f in src_files: 
     114        if is_older( f, lib ): 
     115            return True 
     116    return False 
     117 
     118#### Build the c_lib first 
     119if needs_c_lib_build() and os.system( "cd c_lib && make install" ) != 0: 
     120    print "    ERROR: The c_lib did not build successfully." 
     121    sys.exit(1)  
    102122 
    103123#####################################################     
Note: See TracChangeset for help on using the changeset viewer.