Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to webmaster@scons.org. Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).

SEP

0002

Title

Add More site_scons dirs

Author

Gary Oberbrunner

Status

Accepted, implemented for SCons 2.1

Post History

---

References

Similar PEP: http://ftp.python.org/dev/peps/pep-0370/

Please use the "Discussion" link above for discussions about how this SEP should evolve.

There's been some mailing list discussion about adding more site_scons dirs. Currently in 1.2, only $TOP/site_scons is searched for site_init.py, site_tools, and misc python modules. It makes sense to search a whole path of these. This SEP is about where they should be on different OSes.

Search behavior

All of these dirs are searched, in the order given. Any site_init.py files found are run when found. They are added to python's sys.path in the reverse order, so the user's dir is first and the system dirs are last.

Site_scons locations

Windows XP

Windows Vista and 7

Q: how to find these correctly using Windows API or env vars? Some people won't be on C:, localized dir names will differ, etc.

Linux (e.g. Ubuntu, RedHat)

Solaris

Mac OS X

These next two options might or might not be useful if Application Support is chosen (which would sidestep any "my package management tool is better than yours" arguments)

Other

MoreSiteSconsDirs (last edited 2010-07-04 00:17:16 by GaryOberbrunner)