Commits

Lars Yencken  committed aa4d075

Use a Makefile to bundle the distribution.

  • Participants
  • Parent commits 33db538

Comments (0)

Files changed (3)

 *.pyo
 *.pyc
 game_logs
-bundle.zip
+dist
+#
+#  Makefile
+#
+
+dist/bundle.zip: MyBot.py ants.py
+	mkdir -p dist
+	rm -f dist/bundle.zip
+	zip dist/bundle.zip MyBot.py ants.py

File bundle.py

-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-#
-#  bundle.py
-#  python-bot
-#
-#  Created by Lars Yencken on 2011-11-01.
-#  Copyright 2011 99designs. All rights reserved.
-#
-
-"""
-
-"""
-
-import os
-import zipfile
-
-if os.path.exists('bundle.zip'):
-    os.remove('bundle.zip')
-
-with zipfile.ZipFile('bundle.zip', 'w') as z:
-    z.write('MyBot.py')
-    z.write('ants.py')
-