-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·36 lines (31 loc) · 1.12 KB
/
setup.py
File metadata and controls
executable file
·36 lines (31 loc) · 1.12 KB
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
#!/usr/bin/env python3
from distutils.core import setup, Extension
import glob, os.path, sys
f=open('VERSION')
VERSION=f.read()
f.close()
f=glob.glob('locale/*')
pre_data_files=[]
for a in range(len(f)):
if f[a] == "locale/templates":
continue
pre_data_files.append( ('share/openastro.org/%s/LC_MESSAGES'%(f[a]),\
['%s/LC_MESSAGES/openastro.mo'%(f[a])]) )
pre_data_files += [
('share/applications', ['openastro.desktop']),
('share/openastro.org', ['data/famous.sql','data/geonames.sql','about.xpm', 'openastro-svg.xml','openastro-svg-table.xml','openastro-ui.xml', 'COMMENTS', 'LICENSE', 'VERSION']),
('share/openastro.org/icons', ['icons/openastro.svg']),
('share/openastro.org/icons/aspects', glob.glob('icons/aspects/*.svg')),
('share/swisseph', glob.glob('swisseph/*.*'))
]
setup(name='openastro',
version=VERSION,
description='Open Source Astrology',
author='Pelle van der Scheer',
author_email='devel@openastro.org',
url='http://www.openastro.org',
license='GPL',
scripts=['openastro', 'astroChartBuilder.py'],
packages=['openastromod'],
data_files=pre_data_files
)