Show
Ignore:
Timestamp:
02/24/07 16:43:37 (21 months ago)
Author:
Tarek Ziad?? <tarek@…>
Message:

fixed setup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pycommunity/setup.py

    r71 r74  
    2121""" 
    2222import sys 
     23import os 
    2324 
    2425classifiers = """\ 
     
    4243doclines = __doc__.split("\n") 
    4344 
     45dirname = os.path.dirname(__file__) 
     46if dirname == '': 
     47    dirname = '.' 
     48 
     49etc_dir = os.path.join(dirname, 'etc') 
     50etc_files = [] 
     51 
     52for root, dir_, files in os.walk(etc_dir): 
     53    for file_ in files: 
     54        path = os.path.join(root, file_) 
     55        if not os.path.isfile(path): 
     56            continue 
     57        etc_files.append(path) 
     58     
     59 
    4460setup(name="PyCommunity", 
    4561      version="0.1a", 
     
    5369      long_description = "\n".join(doclines[2:]), 
    5470      scripts = ['pycy'], 
    55       packages = ['pycommunity'] 
    56       ) 
     71      packages = ['pycommunity'], 
     72      install_requires = ['cheesecake', 'cheetah'], 
     73      data_files = [('/etc/pycommunity', etc_files)]) 
    5774