Skip to content

Commit

Permalink
add setup.py
Browse files Browse the repository at this point in the history
allows for the generation of standalone release packages using cx_Freeze
  • Loading branch information
grey committed Mar 26, 2014
1 parent a1530a1 commit 369f937
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os","scipy.sparse.linalg","scipy.sparse.csgraph","scipy.special","matplotlib.backends.backend_tkagg"], "excludes": ["tkinter","sympy"]}

# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"

setup( name = "batch-iv-analysis",
version = "1.0",
description = "Batch curve fitting tool for data files generated by the McGehee LabVIEW IV curve taker",
options = {"build_exe": build_exe_options},
executables = [Executable("batch-iv-analysis.py", base=base)])

0 comments on commit 369f937

Please sign in to comment.