Attempt to update CI to Python 3. #16

This commit is contained in:
2019-01-01 20:56:12 -06:00
parent 59803d547c
commit a93d334b1f
2 changed files with 43 additions and 4 deletions

View File

@@ -1,13 +1,18 @@
#! /usr/bin/env python# -*- coding: iso-8859-1 -*-
import shutil
import os
import sys
def create_archive():
os.chdir("..\\src")
print "Creating zip archive..."
shutil.make_archive("socializer", "zip", "dist")
if os.path.exists("dist"):
shutil.rmtree("dist")
print("Creating zip archive...")
if sys.version[0] == "3":
folder = "dist/main"
else:
folder = "dist"
shutil.make_archive("socializer", "zip", folder)
# if os.path.exists("dist"):
# shutil.rmtree("dist")
if os.path.exists("build"):
shutil.rmtree("build")
os.chdir("..\\scripts")