Changeset 74:c54d9c90e732

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

fixed setup

Location:
pycommunity
Files:
3 added
3 modified

Legend:

Unmodified
Added
Removed
  • pycommunity/etc/pycommunity.conf

    r73 r74  
    11[recipes] 
    2 recipes=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/recipes 
     2# put your recipes folders here 
    33 
    44[tutorials] 
    5 tuts=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/tutorials 
     5# put your tutorials folders here 
    66 
    77[packages] 
    8 package1=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/src/package1 
     8# put your packages here 
    99 
    1010[targets] 
    11 target1=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/www 
     11# put your targets here 
    1212 
    1313[templates] 
    14 index=templates/index.pt 
    15 tutorial=templates/tutorial.pt 
    16 recipe=templates/recipe.pt 
    17 glossary=templates/glossary.pt 
    18 recipelist=templates/recipelist.pt 
    19 tutoriallist=templates/tutoriallist.pt 
    20 packageindex=templates/packageindex.pt 
    21 packagedoc=templates/packagedoc.pt 
    22 packagestats=templates/packagestats.pt 
    23 packagesindex=templates/packagesindex.pt 
    24 css=templates/pycommunity.css 
    25 js=templates/pycommunity.js 
     14index=/etc/pycommunity/index.pt 
     15tutorial=/etc/pycommunity/tutorial.pt 
     16recipe=/etc/pycommunity/recipe.pt 
     17glossary=/etc/pycommunity/glossary.pt 
     18recipelist=/etc/pycommunity/recipelist.pt 
     19tutoriallist=/etc/pycommunity/tutoriallist.pt 
     20packageindex=/etc/pycommunity/packageindex.pt 
     21packagedoc=/etc/pycommunity/packagedoc.pt 
     22packagestats=/etc/pycommunity/packagestats.pt 
     23packagesindex=/etc/pycommunity/packagesindex.pt 
     24css=/etc/pycommunity/pycommunity.css 
     25js=/etc/pycommunity/pycommunity.js 
    2626 
    2727[options] 
    2828projectname=PyCommunity 
    29 media=templates/media 
    30 glossary=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/doc/glossary.txt 
    31 index=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/doc/README.txt 
    32 packages=/home/repos/hg.programmation-python.org/pycommunity/pycommunity/tests/svn/project/doc/packages.txt 
     29media=/etc/pycommunity/media 
     30glossary=/etc/pycommunity/glossary.txt 
     31index=/etc/pycommunity/README.txt 
     32packages=/etc/pycommunity/packages.txt 
    3333 
    3434[skipfolder] 
    35 tests=tests 
     35# put here the folders you want to skip 
    3636 
  • pycommunity/pycy

    r71 r74  
    3636 
    3737if __name__ == '__main__': 
     38    logging.info('Starting site building') 
    3839    if len(sys.argv) > 1: 
    3940        buildSite(sys.argv[1]) 
    4041    else: 
    41         buildSite() 
    42  
     42        buildSite('/etc/pycommunity/pycommunity.conf') 
     43    logging.info('Site building ended.') 
  • 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