-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (33 loc) · 851 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
31
32
33
34
35
36
37
38
import sys
import os
from cx_Freeze import setup, Executable
import astropy
virtual_env_lib = os.path.join(sys.prefix, 'Lib', 'site-packages')
files = ['icon/icon.ico']
astropy_path = os.path.join(astropy.__path__[0])
include_files = [(virtual_env_lib, 'lib'), (astropy_path, 'astropy')]
include_modules = [
'astroquery',
'astropy'
]
target = Executable(
script="AstroObserverPlan.py",
base="Win32GUI",
icon="icon/icon.ico",
shortcut_name='Astro OP',
shortcut_dir="DesktopFolder"
)
setup(
name="Astro Observer Plan",
version="1.0",
description="Astronomy Software",
author="Kerem ERDEM, Korhan KARA",
options={
'build_exe': {
'includes': include_modules,
'include_files': include_files,
'include_msvcr': True
}
},
executables=[target],
)