setup.py revision 395
20N/A# The contents of this file are subject to the terms of the 20N/A# Common Development and Distribution License (the "License"). 20N/A# You may not use this file except in compliance with the License. 20N/A# See the License for the specific language governing permissions 20N/A# and limitations under the License. 20N/A# When distributing Covered Code, include this CDDL HEADER in each 20N/A# If applicable, add the following below this CDDL HEADER, with the 20N/A# fields enclosed by brackets "[]" replaced with your own identifying 20N/A# information: Portions Copyright [yyyy] [name of copyright owner] 20N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2230N/A# Use is subject to license terms. 589N/A# Runs lint on the extension module source code 812N/A # Make string shell-friendly 1968N/A # assumes lint is on the $PATH 1633N/A # Insert tests directory onto sys.path so any custom checkers 429N/A # assumes pylint is accessible on the sys.path 382N/A # specify the filenames of the scripts, in addition 30N/A # to the package names themselves 689N/A # For some reason, the load-plugins option, when used in the 1968N/A # rcfile, does not work, so we put it here instead, to load 382N/A # It's OK to have /'s here, python figures it out when writing files 589N/A At the end of the install function, we need to rename some files 589N/A because distutils provides no way to rename files as they are 1968N/A placed in their install locations. 589N/A Also, make sure that cherrypy is installed. 2230N/A # only rename manpages if building for unix-derived OS 382N/A print "downloading CherryPy" 382N/A print "Unable to retrieve %s.\nPlease retrieve the file " \
1542N/A # remove a partial download or error message from proxy 812N/A print "unpacking CherryPy" 589N/A # extractall doesn't exist until python 2.5 858N/A print "installing CherryPy" 1968N/A # override the build_module method to do VERSION substitution on pkg/__init__.py 1633N/A print "doing version substitution: ", v
765N/A print(
"deleting cherrypy")
1968N/A# These are set to real values based on the platform, down below 812N/A# all builds of IPS should have manpages 812N/A # Solaris-specific extensions are added here 812N/A # Unix platforms which the elf extension has been ported to 1968N/A # are specified here, so they are built automatically 812N/A # Solaris has built-in md library and Solaris-specific arch extension 1968N/A # All others use OpenSSL and cross-platform arch module