Changeset 070ded0 in sasview


Ignore:
Timestamp:
May 3, 2010 8:35:46 AM (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:
569ad15
Parents:
53937a6
Message:

invariantview: update setup.py to allow install with —prefix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/setup.py

    r935ae18 r070ded0  
    22     Installation script for DANSE calculator perspective for SansView 
    33""" 
     4import os 
     5from distutils.core import setup 
    46 
    5      
    6 import os 
    7  
    8 from distutils.core import setup 
    9 from distutils.sysconfig import get_python_lib 
    10 from distutils.filelist import findall 
    11 new_path = os.path.join(get_python_lib(),"sans","perspectives","invariant","media") 
    12 path = "media" 
    13 data_files = [] 
    14 for f in findall(path): 
    15     if os.path.split(f)[0].count('.svn')==0: 
    16         data_files.append((new_path, [f])) 
    17 from distutils.core import setup 
    187setup( 
    198    name="invariant", 
    209    description = "Invariant perspective for SansView", 
    2110    package_dir = {"sans.perspectives":"perspectives", 
    22                    "sans.perspectives.invariant":"perspectives/invariant"}, 
    23     data_files=data_files, 
     11                   "sans.perspectives.invariant":"perspectives/invariant", 
     12                   "sans.perspectives.invariant.media":"media"}, 
     13    package_data={'sans.perspectives.invariant.media': ['*']}, 
    2414    packages = ["sans.perspectives", 
    25                 "sans.perspectives.invariant"], 
     15                "sans.perspectives.invariant", 
     16                "sans.perspectives.invariant.media"], 
    2617    ) 
    2718 
Note: See TracChangeset for help on using the changeset viewer.