Changeset 0f282a5 in sasview


Ignore:
Timestamp:
Aug 10, 2011 6:56:49 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
bcfc969
Parents:
0cd16c2
Message:

fixed a bug; trying to compiles the files that are not c or cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/setup.py

    r0a51f0d8 r0f282a5  
    1111""" 
    1212import sys 
     13if len(sys.argv) == 1: 
     14    sys.argv.append('install') 
    1315import os 
    1416 
     
    4850    class_list = ModelFactory().getAllModels() 
    4951    for name in class_list: 
    50         odb = open("sans/models/pyre/%s.odb" % name, 'w') 
     52        odb = open("src/sans/models/pyre/%s.odb" % name, 'w') 
    5153        odb.write(createODBcontent(name)) 
    5254        odb.close() 
    53         print "sans/models/pyre/%s.odb created" % name 
     55        print "src/sans/models/pyre/%s.odb created" % name 
    5456         
    5557# 
     
    9294                   "winFuncs.c"] 
    9395IGNORED_EXTENSIONS = [".h", ".txt", ".def", ".mm", ".hh", ".py"] 
     96EXTENSIONS = [".c", ".cpp"] 
    9497 
    9598def append_file(file_list, dir_path): 
     
    100103        if os.path.isfile(os.path.join(dir_path, f)): 
    101104            _, ext = os.path.splitext(f) 
    102             if ext not in IGNORED_EXTENSIONS and f not in IGNORED_FILES: 
     105            if ext.lower() in EXTENSIONS and f not in IGNORED_FILES: 
    103106                file_list.append(os.path.join(dir_path, f))  
    104107        elif os.path.isdir(os.path.join(dir_path, f)) and \ 
     
    108111                if os.path.isfile(os.path.join(sub_dir, new_f)): 
    109112                    _, ext = os.path.splitext(new_f) 
    110                     if ext not in IGNORED_EXTENSIONS and\ 
     113                    if ext.lower() in EXTENSIONS and\ 
    111114                         new_f not in IGNORED_FILES: 
    112115                        file_list.append(os.path.join(sub_dir, new_f))  
Note: See TracChangeset for help on using the changeset viewer.