From 0fa808f7066d20047c0576da064bcc105053c401 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 24 Nov 2020 15:41:56 -0500 Subject: Add script to create a zipapp. Invoke create_zipapp.py from the root of the repository and it will create a minimal zipapp with only the mesonbuild module code and a __main__.py directly copied from meson.py The meson.py launcher already tracks the desired entry point, and its only other effect is to add the mesonbuild directory to the path if it exists, which it won't in the zipapp. So there's no need to duplicate this into another __main__.py --- __main__.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 __main__.py (limited to '__main__.py') diff --git a/__main__.py b/__main__.py deleted file mode 100644 index 27cd4c0..0000000 --- a/__main__.py +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env python3 - -# Copyright 2016 The Meson development team - -# 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. - -from mesonbuild import mesonmain -import sys - -sys.exit(mesonmain.main()) -- cgit v1.1