-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
77 lines (72 loc) · 2.89 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
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python
# -*- coding: UTF8 -*-
# * Copyright (C) 2012, Jérome Kieffer <kieffer@terre-adelie.org>
# * Licence GPL v2
# *
# * This program is free software; you can redistribute it and/or modify
# * it under the terms of the GNU General Public License as published by
# * the Free Software Foundation; either version 2 of the License, or
# * (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with this program; if not, write to the Free Software
# * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# *
#*****************************************************************************/
"""
The setup.py script allows to install pycctv regardless to the operating system
"""
import glob
from distutils.core import setup
from distutils.extension import Extension
import os, sys, distutils.sysconfig, shutil, locale
import os.path as op
SCRIPTS = "scripts"
version = "0.0.1"
version = [ eval(l.split("=")[1]) for l in \
open(op.join(op.dirname(op.abspath(__file__)), "src", "__init__.py"))\
if l.strip().startswith("version")][0]
scripts = glob.glob(op.join(SCRIPTS, "*.py"))
print scripts
setup(name='pycctv',
version=version,
author='Jérôme Kieffer',
author_email='Jerome.Kieffer@terre-adelie.org',
url='https://github.com/kif/pycctv',
description="Python project around Closed Circuit TeleVision",
license='GNU GPL v2',
scripts=scripts,
# data_files=[
# (installdir, ["selector.glade", execexiftran] +
# [op.join("pixmaps", i) for i in os.listdir("pixmaps") if (i.endswith(".png") or i.endswith(".ico"))]),
# (op.split(ConfFile[0])[0], ['imagizer.conf'])
# ],
packages=['cctv'],
package_dir={'cctv': 'src'},
# package_data={'imagizer': [op.join("pixmaps", i) for i in os.listdir("pixmaps") if (i.endswith(".png") or i.endswith(".ico"))]},
ext_package="cctv",
# ext_modules=[
# Extension(
# name='libexiftran',
# sources=[op.join("libexiftran", i) for i in os.listdir("libexiftran") if i.endswith(".c")],
# define_macros=[],
# libraries=["jpeg", "exif", "m"],
# ),
# ],
classifiers=[
'Development Status :: 1 - production',
'Environment :: Graphic',
'Environment :: GTK',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Photographs',
'License :: OSI Approved :: GPL',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
],)