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