zdoom-macos-deps/build.py

35 lines
1.1 KiB
Python
Raw Normal View History

2020-04-25 10:05:12 +00:00
#!/usr/bin/env python3
2020-04-25 14:31:52 +00:00
#
# Helper module to build macOS version of various source ports
2023-01-01 08:46:34 +00:00
# Copyright (C) 2020-2023 Alexey Lysiuk
2020-04-25 14:31:52 +00:00
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import sys
_min_version = (3, 8, 0, 'final', 0)
if sys.version_info < _min_version:
print(f'This module requires Python {_min_version[0]}.{_min_version[1]}.{_min_version[2]} or newer')
2020-04-25 14:31:52 +00:00
exit(1)
sys.dont_write_bytecode = True
from aedi import Builder # noqa: E402
2020-04-25 10:05:12 +00:00
if __name__ == '__main__':
Builder(sys.argv[1:]).run()