-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
68 lines (59 loc) · 1.49 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
from setuptools import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
import sys
import os
supported_platforms = ['linux']
platform = sys.platform
if platform not in supported_platforms:
print('Unsupported platform: {}, exiting'.format(platform))
sys.exit()
libraries = ['GL', 'X11', 'EGL']
import kivy
kivy_dir = os.path.dirname(kivy.__file__)
kivy_include_dir = os.path.join(kivy_dir, 'include')
include_dirs = [
'kivywm/include',
kivy_include_dir,
]
extensions = [
Extension(
'kivywm.graphics.texture',
['kivywm/graphics/texture.pyx'],
include_dirs=include_dirs,
libraries=libraries,
library_dirs=[],
),
Extension(
'kivywm.graphics.tfp',
['kivywm/graphics/tfp.pyx'],
include_dirs=include_dirs,
libraries=libraries,
library_dirs=[],
),
Extension(
'kivywm.graphics.extensions',
['kivywm/graphics/extensions.pyx'],
include_dirs=include_dirs,
libraries=libraries,
library_dirs=[],
)
]
setup(
name='KivyWM',
version = '13.0',
description='Kivy Window Manager',
install_requires=[
'cython',
'python-xlib>=0.26',
],
packages=[
'kivywm',
'kivywm.graphics',
'kivywm.uix',
],
author='Joseph Kogut',
author_email='[email protected]',
ext_modules=cythonize(extensions, include_path=kivy.get_includes()),
)