Sections
Timeline
View Tickets
New Ticket
Sub-Sections
Download
Unified Diff
Zip Archive
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Changeset 74 for trunk/setup.py

Show
Ignore:
Timestamp:
07/07/08 06:46:47 (5 months ago)
Author:
gak
Message:

Made setup.py install a man page

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/setup.py

    r73 r74  
    11#!/usr/bin/env python 
    22 
     3from os import path 
    34from distutils.core import setup 
    45 
    56from pycallgraph import __version__ 
     7 
     8# Only install the man page if the correct directory exists 
     9man_path = '/usr/share/man/man1/' 
     10if path.exists(man_path): 
     11    data_files=[['/usr/share/man/man1/', ['man/pycg.1']]] 
     12else: 
     13    data_files=None 
    614 
    715setup( 
     
    1119        'from one execution of your Python code.', 
    1220    author='Gerald Kaszuba', 
    13     author_email='pycallgraph@gakman.com', 
     21    author_email='pycg@slowchop.com', 
    1422    url='http://pycallgraph.slowchop.com/', 
    1523    py_modules=['pycallgraph'], 
    16     scripts=['scripts/pycg', ], 
     24    scripts=['scripts/pycg'], 
     25    data_files=data_files, 
    1726    long_description = \ 
    1827'''Python Call Graph uses GraphViz to generate call graphs from one execution