Permalink
Browse files

Moved map editor to separate repo

  • Loading branch information...
1 parent a77cdb0 commit d6fdf93e63b131d2f462d537a67d4a04bc850438 @NateShoffner committed Apr 16, 2015
Showing with 0 additions and 989 deletions.
  1. +0 −3 py2exe/build_editor.bat
  2. +0 −18 py2exe/build_editor.py
  3. +0 −1 py2exe/post_build_editor.py
  4. +0 −967 tools/editor/run.py
@@ -1,3 +0,0 @@
-rmdir /S /Q dist
-python build_editor.py py2exe
-python post_build_editor.py
@@ -1,18 +0,0 @@
-from distutils.core import setup
-import py2exe
-
-# just so we always get commands.py first, not the stdlib commands.py
-import sys
-sys.path.append('..')
-
-setup(
- console = ['../tools/editor/run.py'],
- zipfile = None,
- options = {
- 'py2exe' : {
- 'compressed' : 1,
- 'optimize' : 2,
- 'bundle_files' : 1,
- 'packages' : ['pyspades', 'win32com']
- }}
-)
@@ -1 +0,0 @@
-import syssys.path.append('..')import osimport shutilimport subprocessdef copy(src, dst): if os.path.isfile(src): shutil.copyfile(src, dst) else: shutil.copytree(src, dst)REMOVE_EXTENSIONS = ['txtc', 'pyc', 'txto', 'pyo']REMOVE_FILES = ['w9xpopen.exe']for root, sub, files in os.walk('./dist'): for file in files: path = os.path.join(root, file) if file in REMOVE_FILES: os.remove(path) else: for ext in REMOVE_EXTENSIONS: if file.endswith(ext): os.remove(path) break def get_git_rev(): import subprocess pipe = subprocess.Popen( ["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE, stderr = subprocess.PIPE) ret = pipe.stdout.read()[:40] if not ret: return '?' return retfilename = 'pyspades-map_editor-%s.zip' % get_git_rev()try: os.remove(filename)except OSError: passtry: subprocess.check_call(['7z', 'a', filename, 'dist'])except WindowsError: print '7zip failed - do you have the 7zip directory in PATH?'
Oops, something went wrong.

0 comments on commit d6fdf93

Please sign in to comment.