Changeset 53937a6 in sasview


Ignore:
Timestamp:
May 2, 2010 3:09:21 PM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
070ded0
Parents:
2e27cf85
Message:

calculatorview: update setup.py to allow —prefix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/setup.py

    r9e977fc r53937a6  
    88from distutils.sysconfig import get_python_lib 
    99from distutils.filelist import findall 
    10 new_path = os.path.join(get_python_lib(),"sans","perspectives","calculator","media") 
    11 path = "media" 
    12 data_files = [] 
    13 for f in findall(path): 
    14     if os.path.split(f)[0].count('.svn')==0: 
    15         data_files.append((new_path, [f])) 
     10 
    1611setup( 
    1712    name="calculator", 
     
    1914    description="calculator perspective for SansView", 
    2015    package_dir={"sans.perspectives":"perspectives", 
    21                    "sans.perspectives.calculator":"perspectives/calculator"}, 
    22     data_files=data_files, 
     16                 "sans.perspectives.calculator":"perspectives/calculator", 
     17                 "sans.perspectives.calculator.media":"media"}, 
     18    package_data={'sans.perspectives.calculator.media': ['*']}, 
    2319    packages=["sans.perspectives", 
    24                 "sans.perspectives.calculator"], 
     20              "sans.perspectives.calculator", 
     21              "sans.perspectives.calculator.media"], 
    2522    ) 
    2623 
Note: See TracChangeset for help on using the changeset viewer.