#
# Copyright (c) 2019 Software AG, Darmstadt, Germany and/or its licensors
# Copyright (c) 2019 Ben Spiller and Matthew Johnson
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
#
# $Id: xpybuild.py 305815 2017-04-13 17:20:20Z bsp $

import sys, os

# this is deliberately a valid Python v2 AND v3 script so we can warn the user if they mess this up
if sys.version_info[:2] < (3, 6): sys.exit('xpybuild.py requires at least Python 3.6 - unsupported Python version %s'%sys.version[:3])

# add the path containing the xpybuild package
sys.path.append(os.path.dirname(os.path.dirname(__file__)))

from xpybuild.internal.main import main

if __name__ == "__main__":
	sys.exit(main(sys.argv[1:]))

#
# Copyright (c) 2019 Software AG, Darmstadt, Germany and/or its licensors
# Copyright (c) 2019 Ben Spiller and Matthew Johnson
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
#
# $Id: xpybuild.py 305815 2017-04-13 17:20:20Z bsp $

import sys, os

# this is deliberately a valid Python v2 AND v3 script so we can warn the user if they mess this up
if sys.version_info[:2] < (3, 7): sys.exit('xpybuild.py requires at least Python 3.7 - unsupported Python version %s'%sys.version[:3])

# add the path containing the xpybuild package
sys.path.append(os.path.dirname(os.path.dirname(__file__)))

from xpybuild.internal.main import main

if __name__ == "__main__":
	sys.exit(main(sys.argv[1:]))

change min supported version to 3.7