Changeset 3010f68 in sasview for setup.py


Ignore:
Timestamp:
May 29, 2018 8:45:04 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, 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
Children:
eca7c6f
Parents:
9a7c81c
Message:

Cherrypicked (from master) commits for C++ → C conversion in the SLD calculator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r417c03f r3010f68  
    1717import numpy as np 
    1818from setuptools import Extension, setup 
     19 
     20try: 
     21    import tinycc.distutils 
     22except ImportError: 
     23    pass 
    1924 
    2025# Manage version number ###################################### 
     
    198203 
    199204# sas module 
    200 #package_dir["sas.sasgui"] = os.path.join("src", "sas", "sasgui") 
    201 #packages.append("sas.sasgui") 
    202  
    203205# qt module 
    204206package_dir["sas.qtgui"] = os.path.join("src", "sas", "qtgui") 
     
    214216packages.extend(["sas.sascalc.invariant"]) 
    215217 
    216 # sas.sasgui.guiframe 
    217 # guiframe_path = os.path.join("src", "sas", "sasgui", "guiframe") 
    218 # package_dir["sas.sasgui.guiframe"] = guiframe_path 
    219 # package_dir["sas.sasgui.guiframe.local_perspectives"] = os.path.join( 
    220 #     os.path.join(guiframe_path, "local_perspectives")) 
    221 # package_data["sas.sasgui.guiframe"] = ['images/*', 'media/*'] 
    222 # packages.extend( 
    223 #     ["sas.sasgui.guiframe", "sas.sasgui.guiframe.local_perspectives"]) 
    224 # # build local plugin 
    225 # for d in os.listdir(os.path.join(guiframe_path, "local_perspectives")): 
    226 #     if d not in ['.svn', '__init__.py', '__init__.pyc']: 
    227 #         package_name = "sas.sasgui.guiframe.local_perspectives." + d 
    228 #         packages.append(package_name) 
    229 #         package_dir[package_name] = os.path.join( 
    230 #             guiframe_path, "local_perspectives", d) 
    231218 
    232219# sas.sascalc.dataloader 
     
    246233ext_modules.append(Extension("sas.sascalc.calculator.core.sld2i", 
    247234                             sources=[ 
    248                                  os.path.join(gen_dir, "sld2i_module.cpp"), 
    249                                  os.path.join(gen_dir, "sld2i.cpp"), 
     235                                 os.path.join(gen_dir, "sld2i_module.c"), 
     236                                 os.path.join(gen_dir, "sld2i.c"), 
    250237                                 os.path.join(gen_dir, "libfunc.c"), 
    251238                                 os.path.join(gen_dir, "librefl.c"), 
     
    280267                             include_dirs=[np.get_include()], 
    281268                             )) 
     269 
    282270# sas.sascalc.corfunc 
    283271package_dir["sas.sascalc.corfunc"] = os.path.join( 
    284272    "src", "sas", "sascalc", "corfunc") 
     273 
    285274packages.extend(["sas.sascalc.corfunc"]) 
    286275 
     
    466455 
    467456required = [ 
    468     'bumps>=0.7.5.9', 'periodictable>=1.5.0', 
     457    'bumps>=0.7.5.9', 'periodictable>=1.5.0', 'pyparsing>=2.0.0', 
    469458    'lxml', 'h5py', 
    470459 
Note: See TracChangeset for help on using the changeset viewer.