资源简介
scons-2.3.1.tar.gz
openwrt中用到的源码之一,如果openwrt下载不下来,请下载本网站的!
代码片段和文件信息
#
# Copyright (c) 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 The SCons Foundation
#
# Permission is hereby granted free of charge to any person obtaining
# a copy of this software and associated documentation files (the
# “Software“) to deal in the Software without restriction including
# without limitation the rights to use copy modify merge publish
# distribute sublicense and/or sell copies of the Software and to
# permit persons to whom the Software is furnished to do so subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY
# KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION
# OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
“““
NOTE: Installed SCons is not importable like usual Python packages. It is
executed explicitly with command line scripts. This allows multiple
SCons versions to coexist within single Python installation which
is critical for enterprise build cases. Explicit invokation is
necessary to avoid confusion over which version of SCons is active.
By default SCons is installed into versioned directory e.g.
site-packages/scons-2.1.0.alpha.20101125 and much of the stuff
below is dedicated to make it happen on various platforms.
“““
__revision__ = “src/setup.py 2014/03/02 14:18:15 garyo“
import os
import stat
import sys
Version = “2.3.1“
man_pages = [
‘scons.1‘
‘sconsign.1‘
‘scons-time.1‘
]
# Exit with error if trying to install with Python >= 3.0
if sys.version_info >= (300):
msg = “scons: *** SCons does not run under Python version %s.\n\
Python 3 and above are not yet supported.\n“
sys.stderr.write(msg % (sys.version.split()[0]))
sys.exit(1)
# change to setup.py directory if it was executed from other dir
(head tail) = os.path.split(sys.argv[0])
if head:
os.chdir(head)
sys.argv[0] = tail
# flag if setup.py is run on win32 or _for_ win32 platform
# (when building windows installer on linux for example)
is_win32 = 0
if not sys.platform == ‘win32‘:
try:
if sys.argv[1] == ‘bdist_wininst‘:
is_win32 = 1
except IndexError:
pass
else:
is_win32 = 1
import distutils
import distutils.core
import distutils.command.install
import distutils.command.install_data
import distutils.command.install_lib
import distutils.command.install_scripts
import distutils.command.build_scripts
_install = distutils.command.install.install
_install_data = distutils.command.install_data.instal
- 上一篇:IAR官方用户手册-中文版
- 下一篇:Centos 6安装配置图解
评论
共有 条评论