-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·70 lines (55 loc) · 1.79 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
#!/usr/bin/env python
# encoding: utf-8
# python setup.py check
# python setup.py build
# python setup.py run
# python setup.py install
# python setup.py clean --all
from distutils.core import setup, Command
from distutils.version import StrictVersion
from efl.utils.setup import build_extra, build_edc, build_fdo, build_i18n, uninstall
from efl import __version__ as efl_version
MIN_EFL = '1.18'
if StrictVersion(efl_version) < MIN_EFL:
print('Your python-efl version is too old! Found: ' + efl_version)
print('You need at least version ' + MIN_EFL)
exit(1)
class run_in_tree(Command):
description = 'Run the main() from the build folder (without install)'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys, platform
sys.path.insert(0, 'build/lib.%s-%s-%d.%d' % (
platform.system().lower(), platform.machine(),
sys.version_info[0], sys.version_info[1]))
from efl_python_sample.main import main
sys.exit(main())
setup(
name = 'efl_python_sample',
version = '0.0.1',
description = 'Short description',
long_description = 'A longer description of your project',
author = 'Donn Atienza',
author_email = '[email protected]',
url = '',
license = "3-Clause BSD",
package_dir = {'efl_python_sample': 'src'},
packages = ['efl_python_sample'],
requires = ['efl'],
scripts = ['bin/efl_python_sample'],
cmdclass = {
'build': build_extra,
'build_fdo': build_fdo,
# 'build_edc': build_edc,
# 'build_i18n': build_i18n,
'run': run_in_tree,
'uninstall': uninstall,
},
command_options = {
'install': {'record': ('setup.py', 'installed_files.txt')}
},
)