setup.py revision 383
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] 135N/A# Runs lint on the extension module source code 382N/A # Make string shell-friendly 466N/A # assumes lint is on the $PATH 451N/A # Insert tests directory onto sys.path so any custom checkers 451N/A # assumes pylint is accessible on the sys.path 451N/A # specify the filenames of the scripts, in addition 451N/A # to the package names themselves 451N/A # For some reason, the load-plugins option, when used in the 461N/A # rcfile, does not work, so we put it here instead, to load 382N/A# Developer command to connect the local machine to the current 466N/A# repository's working copy's versions of the commands, modules, and supporting 461N/A "copy of files in local repository" 466N/A # It's OK to have /'s here, python figures it out when writing files 466N/A # At the end of the install function, we need to rename some files 466N/A # because distutils provides no way to rename files as they are placed 466N/A # in their install locations 466N/A # only rename manpages if building for unix-derived OS 382N/A # make scripts executable 451N/A print >>
stderr,
"ERROR: unable to obtain mercurial version" 451N/A # override the build_module method to do VERSION substitution on pkg/__init__.py 451N/A print "doing version substitution: ", v
# 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