2011-10-04 18:36:00 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
#
|
|
|
|
# SCons - a Software Constructor
|
|
|
|
#
|
2023-03-08 12:01:16 +00:00
|
|
|
# MIT License
|
|
|
|
#
|
|
|
|
# Copyright The SCons Foundation
|
2011-10-04 18:36:00 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2023-03-08 12:01:16 +00:00
|
|
|
__revision__ = "scripts/sconsign.py 49578b34582d9e92dac7d713a8e58599ae35aa63 Mon, 06 Mar 2023 23:32:38 -0400 bdbaddog"
|
2011-10-04 18:36:00 +00:00
|
|
|
|
2023-03-08 12:01:16 +00:00
|
|
|
__version__ = "4.5.1"
|
2011-10-04 18:36:00 +00:00
|
|
|
|
2023-03-08 12:01:16 +00:00
|
|
|
__build__ = "49578b34582d9e92dac7d713a8e58599ae35aa63"
|
2011-10-04 18:36:00 +00:00
|
|
|
|
2023-03-08 12:01:16 +00:00
|
|
|
__buildsys__ = "M1DOG2021"
|
2011-10-04 18:36:00 +00:00
|
|
|
|
2023-03-08 12:01:16 +00:00
|
|
|
__date__ = "Mon, 06 Mar 2023 23:32:38 -0400"
|
2011-10-04 18:36:00 +00:00
|
|
|
|
2015-08-12 09:18:09 +00:00
|
|
|
__developer__ = "bdbaddog"
|
2011-10-04 18:36:00 +00:00
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2021-03-05 10:18:26 +00:00
|
|
|
# python compatibility check
|
2023-03-08 12:01:16 +00:00
|
|
|
if sys.version_info < (3, 6, 0):
|
2021-03-05 10:18:26 +00:00
|
|
|
msg = "scons: *** SCons version %s does not run under Python version %s.\n\
|
|
|
|
Python >= 3.5 is required.\n"
|
|
|
|
sys.stderr.write(msg % (__version__, sys.version.split()[0]))
|
|
|
|
sys.exit(1)
|
2011-10-04 18:36:00 +00:00
|
|
|
|
2021-03-05 10:18:26 +00:00
|
|
|
# Strip the script directory from sys.path so on case-insensitive
|
2011-10-04 18:36:00 +00:00
|
|
|
# (WIN32) systems Python doesn't think that the "scons" script is the
|
2021-03-05 10:18:26 +00:00
|
|
|
# "SCons" package.
|
2017-11-16 10:59:55 +00:00
|
|
|
script_dir = os.path.dirname(os.path.realpath(__file__))
|
2021-03-05 10:18:26 +00:00
|
|
|
script_path = os.path.realpath(os.path.dirname(__file__))
|
|
|
|
if script_path in sys.path:
|
|
|
|
sys.path.remove(script_path)
|
2011-10-04 18:36:00 +00:00
|
|
|
|
|
|
|
libs = []
|
|
|
|
|
|
|
|
if "SCONS_LIB_DIR" in os.environ:
|
|
|
|
libs.append(os.environ["SCONS_LIB_DIR"])
|
|
|
|
|
2021-03-05 10:18:26 +00:00
|
|
|
# running from source takes 2nd priority (since 2.3.2), following SCONS_LIB_DIR
|
|
|
|
source_path = os.path.join(script_path, os.pardir)
|
|
|
|
if os.path.isdir(source_path):
|
|
|
|
libs.append(source_path)
|
2016-08-05 09:16:06 +00:00
|
|
|
|
2021-03-05 10:18:26 +00:00
|
|
|
# add local-install locations
|
2011-10-04 18:36:00 +00:00
|
|
|
local_version = 'scons-local-' + __version__
|
|
|
|
local = 'scons-local'
|
|
|
|
if script_dir:
|
|
|
|
local_version = os.path.join(script_dir, local_version)
|
|
|
|
local = os.path.join(script_dir, local)
|
2021-03-05 10:18:26 +00:00
|
|
|
if os.path.isdir(local_version):
|
|
|
|
libs.append(os.path.abspath(local_version))
|
|
|
|
if os.path.isdir(local):
|
|
|
|
libs.append(os.path.abspath(local))
|
2011-10-04 18:36:00 +00:00
|
|
|
|
|
|
|
scons_version = 'scons-%s' % __version__
|
|
|
|
|
|
|
|
sys.path = libs + sys.path
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# END STANDARD SCons SCRIPT HEADER
|
|
|
|
##############################################################################
|
2021-03-05 10:18:26 +00:00
|
|
|
from SCons.Utilities.sconsign import main
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|
|
|
|
sys.exit(0)
|
2011-10-04 18:36:00 +00:00
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:4
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=4 shiftwidth=4:
|