Changeset 14170 for trunk


Ignore:
Timestamp:
05/14/12 16:48:10 (12 years ago)
Author:
ramonb
Message:

sara_cmt/setup.py:

  • location for /etc based on prefix
  • see #14
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sara_cmt/setup.py

    r14168 r14170  
    11from distutils.core import setup
     2import site
     3
     4ETC_PREPEND = ''
     5
     6if site.sys.prefix in [ '/usr', '/' ]:
     7    ETC_PREPEND = '/'
     8
    29setup(
    310    name = 'CMT',
     
    8895    data_files = [
    8996        # config-files
    90         ('etc/cmt/', [
     97        (ETC_PREPEND + 'etc/cmt/', [
    9198            'etc/cmt.conf.sample',
    9299            'etc/logging.conf'
    93100        ]),
    94101        # empty directory for CMT-templates
    95         ('etc/cmt/templates', []),
     102        (ETC_PREPEND + 'etc/cmt/templates', []),
    96103        # examples of CMT-templates
    97104        ('share/doc/cmt/templates/examples', [
Note: See TracChangeset for help on using the changeset viewer.