-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
53 lines (48 loc) · 1.42 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
from setuptools import setup
import os, sys
sys.path.append('lib')
import fbuild
try:
import bluesnow
cmdclass = bluesnow.setuptools_cmdclass
except ImportError:
cmdclass = {}
data_files = []
if sys.platform.startswith('linux') and 'FBUILD_SKIP_INSTALL' not in os.environ:
data_files.append(('/usr/local/share/uprocd/modules', ['misc/fbuild.module']))
data_files.append(('/usr/share/polkit-1/actions',
['misc/com.github.fbuild.install.policy']))
# This ensures BlueSnow will avoid trying to install polkit files.
os.environ['FBUILD_SKIP_INSTALL'] = '1'
setup(
name='fbuild',
version=fbuild.__version__,
description='fbuild build system',
author='Erick Tryzelaar',
author_email='[email protected]',
url='https://github.com/felix-lang/fbuild',
license='BSD',
packages=[
'fbuild',
'fbuild.builders',
'fbuild.builders.c',
'fbuild.builders.c.clang',
'fbuild.builders.c.gcc',
'fbuild.builders.cxx',
'fbuild.builders.cxx.clangxx',
'fbuild.builders.cxx.gxx',
'fbuild.builders.ocaml',
'fbuild.config',
'fbuild.config.c',
'fbuild.config.cxx',
'fbuild.db',
'fbuild.subprocess',
],
entry_points={
'console_scripts': ['fbuild = fbuild.main:main']
},
package_dir={'': 'lib'},
data_files=data_files,
cmdclass=cmdclass,
zip_safe=False,
)