setup.py revision 591
290N/A# The contents of this file are subject to the terms of the 290N/A# Common Development and Distribution License (the "License"). 290N/A# You may not use this file except in compliance with the License. 290N/A# See the License for the specific language governing permissions 290N/A# and limitations under the License. 290N/A# When distributing Covered Code, include this CDDL HEADER in each 290N/A# If applicable, add the following below this CDDL HEADER, with the 290N/A# fields enclosed by brackets "[]" replaced with your own identifying 290N/A# information: Portions Copyright [yyyy] [name of copyright owner] 395N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 395N/A# Use is subject to license terms. 465N/A# 3rd party software required for the build 534N/A# Unbuffer stdout and stderr. This helps to ensure that subprocess output 534N/A# is properly interleaved with output from this program. 290N/A# Runs lint on the extension module source code 290N/A # Make string shell-friendly 290N/A # assumes lint is on the $PATH 395N/A # Insert tests directory onto sys.path so any custom checkers 290N/A # assumes pylint is accessible on the sys.path 395N/A # specify the filenames of the scripts, in addition 395N/A # to the package names themselves 290N/A # For some reason, the load-plugins option, when used in the 290N/A # rcfile, does not work, so we put it here instead, to load 506N/A # PRIVATE_BUILD set in the environment tells us to put the build 506N/A # directory into the .pyc files, rather than the final 506N/A # installation directory. 395N/A # It's OK to have /'s here, python figures it out when writing files 506N/A # This is used when installing scripts, below, but it isn't a 506N/A # standard distutils variable. 395N/A At the end of the install function, we need to rename some files 395N/A because distutils provides no way to rename files as they are 395N/A placed in their install locations. 395N/A Also, make sure that cherrypy is installed. 395N/A # make scripts executable 395N/A print "Unable to retrieve %s.\nPlease retrieve the file " \
395N/A # remove a partial download or error message from proxy 395N/A # extractall doesn't exist until python 2.5 383N/A # override the build_module method to do VERSION substitution on pkg/__init__.py 422N/A # Grab the previously-built version out of the build 422N/A # If the versions haven't changed, there's no need to 383N/A print "doing version substitution: ", v
448N/A (
"genbaseline",
'g',
"generate test baseline"),
448N/A (
"parseable",
'p',
"parseable output"),
448N/A (
"baselinefile=",
'b',
"baseline file <file>"),
448N/A (
"only=",
"o",
"only <regex>")]
290N/A# These are set to real values based on the platform, down below 383N/A# all builds of IPS should have manpages 395N/A # Solaris-specific extensions are added here 395N/A # Unix platforms which the elf extension has been ported to 395N/A # are specified here, so they are built automatically 395N/A # Solaris has built-in md library and Solaris-specific arch extension 395N/A # All others use OpenSSL and cross-platform arch module