forked from carlsc2/analogy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
30 lines (24 loc) · 996 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import datetime
from cx_Freeze import setup, Executable
os.environ['TCL_LIBRARY'] = "C:\\Users\\DIMITRI\\AppData\\Local\\Programs\\Python\\Python35-32\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\Users\\DIMITRI\\AppData\\Local\\Programs\\Python\\Python35-32\\tcl\\tk8.6"
includefiles = ['static/', 'templates/', 'data files/']
for directory in ():
includefiles.extend(files_under_dir(directory))
dt = datetime.datetime.now()
main_executable = Executable("webinterface.py", base=None)
setup(name="Analogy Web Interface",
version="0.1." + dt.strftime('%m%d.%H%m'),
description="Analogy Web Interface",
options={
'build_exe': {
'optimize':2,
'packages': ['jinja2.ext'],
#'excludes' : ['numpy.core._dotblas'],
'include_files': includefiles,
'include_msvcr': True}},
executables=[main_executable], requires=['flask'])