@@ -0,0 +1,2132 @@
+#     Copyright 2016, Kay Hayen, mailto:kay.hayen@gmail.com%0A#%0A#     Part of %22Nuitka%22, an optimizing Python compiler that is compatible and%0A#     integrates with CPython, but also works on its own.%0A#%0A#     Licensed under the Apache License, Version 2.0 (the %22License%22);%0A#     you may not use this file except in compliance with the License.%0A#     You may obtain a copy of the License at%0A#%0A#        http://www.apache.org/licenses/LICENSE-2.0%0A#%0A#     Unless required by applicable law or agreed to in writing, software%0A#     distributed under the License is distributed on an %22AS IS%22 BASIS,%0A#     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A#     See the License for the specific language governing permissions and%0A#     limitations under the License.%0A#%0A%22%22%22 Release: Create and upload Windows MSI files for Nuitka%0A%0A%22%22%22%0A%0Afrom __future__ import print_function%0A%0Aimport os%0Aimport shutil%0Aimport subprocess%0Aimport sys%0A%0Aif os.path.isdir(%22dist%22):%0A    shutil.rmtree(%22dist%22)%0A%0Abranch_name = subprocess.check_output(%0A    %22git name-rev --name-only HEAD%22.split()%0A).strip()%0A%0Aprint(%22Building for branch '%25s'.%22 %25 branch_name)%0A%0Aassert branch_name in (%0A    b%22master%22,%0A    b%22develop%22,%0A    b%22factory%22,%0A), branch_name%0A%0Aassert 0 == subprocess.call(%0A    (%0A        sys.executable,%0A        %22setup.py%22,%0A        %22bdist_msi%22,%0A        %22--target-version=%22 + sys.version%5B:3%5D%0A    )%0A)%0A%0Afor filename in os.listdir(%22dist%22):%0A    if not filename.endswith(%22.msi%22):%0A        continue%0A%0A    break%0Aelse:%0A    sys.exit(%22No MSI created.%22)%0A%0Aparts = %5B%0A    filename%5B:-4%5D.%5C%0A        replace(%22-py2.6%22,%22%22).%5C%0A        replace(%22-py2.7%22,%22%22).%5C%0A        replace(%22-py3.2%22,%22%22).%5C%0A        replace(%22-py3.3%22,%22%22).%5C%0A        replace(%22-py3.4%22,%22%22).%5C%0A        replace(%22-py3.5%22,%22%22).%5C%0A        replace(%22Nuitka32%22,%22Nuitka%22).%5C%0A        replace(%22Nuitka64%22,%22Nuitka%22),%0A    %22py%22 + sys.version%5B:3%5D.replace('.',%22%22),%0A    %22msi%22%0A%5D%0A%0Anew_filename = '.'.join(parts)%0A%0Aif branch_name == b%22factory%22:%0A    new_filename = %22Nuitka-factory.%22 + new_filename%5Bnew_filename.find(%22win%22):%5D%0A%0Aos.rename(os.path.join(%22dist%22,filename),os.path.join(%22dist%22,new_filename))%0A%0Aprint(%22OK, created as dist/%22 + new_filename)%0A

Add script to only create the MSI package.