Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
added optional support for pje's setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
tavis_rudd committed Jan 1, 2006
1 parent 4eac1e3 commit 1c92ffd
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions SetupTools.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# $Id: SetupTools.py,v 1.7 2005/08/17 18:45:21 tavis_rudd Exp $
# $Id: SetupTools.py,v 1.8 2006/01/01 23:40:54 tavis_rudd Exp $
"""Some tools for extending and working with distutils
CREDITS: This module borrows code and ideas from M.A. Lemburg's excellent setup
Expand All @@ -8,41 +8,36 @@
"""

__author__ = "Tavis Rudd <tavis@damnsimple.com>"
__version__ = "$Revision: 1.7 $"[11:-2]

##################################################
## DEPENDENCIES ##

from distutils.core import setup
## this bit is experimental:
#try:
# # use http://peak.telecommunity.com/DevCenter/setuptools if it's installed
# # requires Py >=2.3
# from setuptools import setup
#except ImportError:
# from distutils.core import setup

from distutils.core import Command
from distutils.command.install_data import install_data
__version__ = "$Revision: 1.8 $"[11:-2]

import os
from os import listdir
import os.path
from os.path import exists, isdir, isfile, join, splitext

import types
import glob
import string
import traceback

from distutils.core import setup
if 'CHEETAH_USE_SETUPTOOLS' in os.environ:
try:
# use http://peak.telecommunity.com/DevCenter/setuptools if it's installed
# requires Py >=2.3
from setuptools import setup
except ImportError:
from distutils.core import setup

from distutils.core import Command
from distutils.command.install_data import install_data

#imports from Cheetah ...
from src.FileUtils import findFiles

##################################################
## CLASSES ##

class mod_install_data(install_data):

"""A modified version of the disutils install_data command that allows data
files to be included directly in the installed Python package tree.
"""
Expand Down Expand Up @@ -106,7 +101,6 @@ def run (self):
## FUNCTIONS ##

def run_setup(configurations):

""" Run distutils setup.
The parameters passed to setup() are extracted from the list of modules,
Expand Down

0 comments on commit 1c92ffd

Please sign in to comment.