-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (59 loc) · 2.29 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python
# -*- coding:utf8 -*-
###########################################################################
# Copyright (C) 2005-2009 Håvard Gulldahl og Håvard Sjøvoll
#
# Lisens: GPL2
#
# $Id$
###########################################################################
from distutils.core import setup
#from setuptools import setup
import sys, os, os.path, glob
try:
import py2exe
extra = {'console':['faktura'],
'options': { 'py2exe' : {
'optimize': 2,
'includes': ['sip', 'socket', 'xml.etree.ElementTree'], # list of modules to include
'excludes':[], #list of module names to exclude
'dll_excludes':[], #list of dlls to exclude
'ignores':[],# list of modules to ignore if they are not found
}
}
}
except ImportError:
PY2EXE=False
extra = {}
import finfaktura # for versjonsnummer
setup(name="finfaktura",
version=finfaktura.__version__,
description="Fryktelig Fin Faktura - fakturaprogram for norske næringsdrivende",
author="Johnny A. Solbu",
author_email="[email protected]",
url="https://sourceforge.net/projects/finfaktura/",
packages=['finfaktura', 'finfaktura.ui'],
package_data={'': ['ui/fakturanummer.ui']},
include_package_data=True,
data_files=[
('share/finfaktura/scripts', glob.glob('scripts/*')),
('share/finfaktura/translations', glob.glob('translations/*.qm')),
('share/applications', ['finfaktura.desktop']),
('share/pixmaps', ['finfaktura.png']),
('share/icons/hicolor/128x128/apps', ['finfaktura-icon.png']),
],
scripts=["faktura"],
Vendor="solbu.net",
license="GPL2",
long_description=file(os.path.split(os.path.realpath(sys.argv[0]))[0] + "/intro").read(),
**extra
#install_requires = ['docutils>=0.3', 'reportlab'],
#zip_safe=True,
#include_package_data = True,
#entry_points = {
#'console_scripts': [
#'faktura_cli = faktura:cli_faktura',
#],
#}
)