usr/src/README
author Mary Ding <mary.ding@oracle.com>
Mon, 10 Sep 2012 11:05:44 -0700
changeset 1777 7a308ca72309
parent 1640 851d069ece17
permissions -rw-r--r--
Added tag S11U1Build24a for changeset d7ed706a062a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     1
#
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     2
# CDDL HEADER START
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     3
#
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     4
# The contents of this file are subject to the terms of the
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     5
# Common Development and Distribution License (the "License").
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     6
# You may not use this file except in compliance with the License.
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     7
#
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    10
# See the License for the specific language governing permissions
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    11
# and limitations under the License.
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    12
#
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    18
#
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    19
# CDDL HEADER END
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    20
#
1572
30f73c6cdf05 7127158 usr/src/README needs to be updated to include text/locale
Mary Ding <mary.ding@oracle.com>
parents: 1535
diff changeset
    21
# Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    22
#
1
b2e7e362ef44 new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    23
b2e7e362ef44 new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    24
572
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    25
Welcome to the mercurial source repository for the Caiman Project:
919
999ceaea57d4 6978164 Update README and default developer.sh to reflect current CBE
Keith Mitchell <keith.mitchell@oracle.com>
parents: 804
diff changeset
    26
GUI Install, Text Install, Distribution Constructor and Auto Installer.
572
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    27
This source also includes the libraries needed for the Caiman Project.
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    28
--------------------------------------------------------------------
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    29
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    30
To setup a machine for building this source repository:
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    31
-------------------------------------------------------
919
999ceaea57d4 6978164 Update README and default developer.sh to reflect current CBE
Keith Mitchell <keith.mitchell@oracle.com>
parents: 804
diff changeset
    32
NOTE: The following steps require the user to have sufficient privileges,
999ceaea57d4 6978164 Update README and default developer.sh to reflect current CBE
Keith Mitchell <keith.mitchell@oracle.com>
parents: 804
diff changeset
    33
via pfexec or sudo, to install software on the build system.
1379
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    34
 1. Get the SunStudio compilers.  There are two choices:
1535
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    35
 	a) Mount/symlink or rsync cache the /ws/on11update-tools autofs.  This is
1379
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    36
 	   highly recommended for Oracle internal developers.  The compilers
1535
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    37
 	   are found at /ws/on11update-tools/SUNWspro/sunstudio12.1 (which is a
1379
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    38
 	   symlink to the specific patched version used).
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    39
 	b) Via the Image Packaging System (IPS). To install, run the command
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    40
 	   "pkg install developer/sunstudio12u1".  This package may not
1535
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    41
 	   be identical to the on11update-tools version, so is not preferred.
1379
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    42
	    
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    43
	    Alternatively, the package "pkg:/developer/solaris-studio-express"
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    44
	    may be used. However, Solaris Studio 12 update 1 is the currently
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    45
	    supported build environment.
1
b2e7e362ef44 new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    46
1535
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    47
 2. Get the OS/Net Build Tools.  There are two choices:
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    48
 	a) Mount/symlink or rsync cache the /ws/on11update-tools autofs.  This is
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    49
 	   highly recommended for Oracle internal developers.  The onbld tools
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    50
 	   are found at /ws/on11update-tools/onbld/
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    51
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    52
        b) Via the Image Packaging System (IPS).  The repo for on-onbuild is here:
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    53
           http://ipkg.us.oracle.com/internal/solaris11/on/onbld
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    54
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    55
           To install, run the 
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    56
           command "pkg install pkg://on-onbuild/developer/build/onbld".
1
b2e7e362ef44 new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    57
687
affa28c47b7a 13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents: 572
diff changeset
    58
 3. Install required IPS packages:
affa28c47b7a 13708 README file doesn't mention installing SUNWinstallint
Keith Mitchell <keith.mitchell@sun.com>
parents: 572
diff changeset
    59
1272
7788c9e14874 7066258 slim_source usr/src/README need to be updated
Mary Ding <mary.ding@oracle.com>
parents: 1250
diff changeset
    60
	developer/build/dmake
804
d2c6e4ff2961 15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 800
diff changeset
    61
	developer/swig
d2c6e4ff2961 15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 800
diff changeset
    62
	system/boot/wanboot/internal
1272
7788c9e14874 7066258 slim_source usr/src/README need to be updated
Mary Ding <mary.ding@oracle.com>
parents: 1250
diff changeset
    63
	system/header
804
d2c6e4ff2961 15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 800
diff changeset
    64
	system/library/install/libinstzones
d2c6e4ff2961 15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 800
diff changeset
    65
	system/library/libdiskmgt/header-libdiskmgt
d2c6e4ff2961 15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 800
diff changeset
    66
	system/zones/internal
d2c6e4ff2961 15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 800
diff changeset
    67
	text/gnu-gettext
1631
f8841ae44dc6 7117291 Deliver translatable content in a separate IPS package
Takeshi Asano <takeshi.asano@oracle.com>
parents: 1572
diff changeset
    68
	text/gnu-grep
1572
30f73c6cdf05 7127158 usr/src/README needs to be updated to include text/locale
Mary Ding <mary.ding@oracle.com>
parents: 1535
diff changeset
    69
	text/locale
804
d2c6e4ff2961 15535 README for slim_source should be updated with the IPS package names for the remaining SVR4 packages listed as build dependencies
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 800
diff changeset
    70
919
999ceaea57d4 6978164 Update README and default developer.sh to reflect current CBE
Keith Mitchell <keith.mitchell@oracle.com>
parents: 804
diff changeset
    71
    To get these packages, run "pkg install <package>"
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    72
572
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    73
To setup the repository to be built:
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    74
------------------------------------
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    75
 1. cd usr/src in the repository
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    76
919
999ceaea57d4 6978164 Update README and default developer.sh to reflect current CBE
Keith Mitchell <keith.mitchell@oracle.com>
parents: 804
diff changeset
    77
 2. cp tools/env/developer.sh .; chmod +w developer.sh
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    78
572
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    79
    Some environment variables which might need to be changed:
1379
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    80
    * You should set the path to your repository defined by CODEMGR_WS.
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    81
    * You may need to change the SPRO_ROOT variable to point to your
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    82
      installed compilers. Likely locations are:
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    83
	 /opt/SUNWspro (default)
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    84
	 /opt
1535
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    85
	 /ws/on11update-tools
560
a55736d02592 9028 Update gate README to include links to compilers and ON build tools
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 254
diff changeset
    86
1379
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    87
     In some circumstances overriding the SPRO_VROOT variable may be useful,
c41058d1a083 7075220 sc_template.xml left behind in cleanup
Dave Miner <dave.miner@oracle.com>
parents: 1272
diff changeset
    88
     as well as symlinks from /opt to your compiler location.
1272
7788c9e14874 7066258 slim_source usr/src/README need to be updated
Mary Ding <mary.ding@oracle.com>
parents: 1250
diff changeset
    89
572
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    90
To build this repository use the following steps:
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    91
-------------------------------------------------
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    92
 1. cd usr/src in the repository
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    93
1535
c41d849a6d2e 7104155 tools/tests/README not consistent about unit tests running
Mary Ding <mary.ding@oracle.com>
parents: 1379
diff changeset
    94
 2. To build, run: /opt/onbld/bin/nightly developer.sh 
572
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    95
    This updates the source from the Mercurial repository.
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    96
 
572
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    97
    If you do not wish to do a Mercurial pull as part of the nightly run,
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
    98
    use the -n option.
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
    99
919
999ceaea57d4 6978164 Update README and default developer.sh to reflect current CBE
Keith Mitchell <keith.mitchell@oracle.com>
parents: 804
diff changeset
   100
    /opt/onbld/bin/nightly -n developer.sh
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
   101
1071
40064551d1eb 7035227 Install slim_source should be pkglint-clean and strive for pkgdepend cleanliness
Mary Ding <mary.ding@oracle.com>
parents: 919
diff changeset
   102
 3. Before packages can be published to the redist repositories, the
40064551d1eb 7035227 Install slim_source should be pkglint-clean and strive for pkgdepend cleanliness
Mary Ding <mary.ding@oracle.com>
parents: 919
diff changeset
   103
    package manifests in usr/src/pkg/manifests must be free from
1250
404ceec26992 7040423 package manifests should be pkgfmt'ed
Mary Ding <mary.ding@oracle.com>
parents: 1085
diff changeset
   104
    pkglint(1) ERRORs and pkgfmt(1) ERRORS. Please refer to 
404ceec26992 7040423 package manifests should be pkgfmt'ed
Mary Ding <mary.ding@oracle.com>
parents: 1085
diff changeset
   105
    usr/src/pkg/README.pkg for more details.
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
   106
1640
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   107
To run unit tests and slim_code_cleanliness after building packages:
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   108
--------------------------------------------------------------------
1085
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   109
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   110
 1. cd usr/src/tools/tests
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   111
 2.  Follow the README and run the slim_unit tests
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   112
 3.  If there is new unit tests failures, those must be fixed before putback.
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   113
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   114
To check for pep8 slim_code_cleanliness:
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   115
----------------------------------------
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   116
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   117
 1. Install the Python setup tools:
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   118
                pkg install library/python-2/setuptools-26
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   119
 
1640
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   120
 2. In order to use easy_install, you might need to setup http_proxy:
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   121
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   122
    i.e:
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   123
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   124
     http_proxy=http://www-proxy.us.oracle.com/
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   125
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   126
 3. Install the pep8 tool:
1085
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   127
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   128
                easy_install pep8
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   129
                (The warning messages during installation may be ignored)
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   130
1640
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   131
     And the python setup tools will find it, download, and install it for you as /usr/bin/pep8
1085
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   132
1640
851d069ece17 7144255 Need to update usr/src/tools/tests/README and usr/src/README about http proxy/nosexunit/pylint
Mary Ding <mary.ding@oracle.com>
parents: 1631
diff changeset
   133
 4.  You can check for pep8 cleanliness mimicking the command that hudson uses:
1085
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   134
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   135
/usr/bin/pep8 --ignore=E261,W291,W293 --count -r --show-source <file/folder>
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   136
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   137
i.e.:
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   138
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   139
# cd lib/install_target
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   140
# /usr/bin/pep8 --ignore=E261,W291,W293 --count -r --show-source logical.py
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   141
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   142
logical.py:58:23: E241 multiple spaces after ','
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   143
    def __init__(self,  name):
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   144
                      ^
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   145
1
3d8b43a50cbe Update usr/src/README for pep8 instructions
Mary Ding <mary.ding@oracle.com>
parents: 1071
diff changeset
   146
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
   147
--------------------------------------------------------------------
1
b2e7e362ef44 new README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   148
Notes:
2
fce704dce9e9 modified README for slim_source repo
"mw145384 <moriah.waterland@sun.com>"
parents: 1
diff changeset
   149
151
80b508d743ec 1991 cleanup developer.sh file and README in slim_source gate
Moriah Waterland <Moriah.Waterland@Sun.COM>
parents: 99
diff changeset
   150
Please send questions, comments, contributions to:
572
a6e9fc0bf533 9165 Gate README file needs ON packages too
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 560
diff changeset
   151
         caiman-discuss (at) opensolaris.org