forked from douban/greenify
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
19 lines (17 loc) · 664 Bytes
/
setup.py
File metadata and controls
19 lines (17 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os
from distutils.core import setup, Extension
from Cython.Distutils import build_ext
if 'LIBGREENIFY_PREFIX' in os.environ:
include_dirs = [os.path.join(os.environ['LIBGREENIFY_PREFIX'], 'include')]
library_dirs = [os.path.join(os.environ['LIBGREENIFY_PREFIX'], 'lib')]
else:
include_dirs = ['.']
library_dirs = ['.']
setup(name='greenify',
version='0.1',
ext_modules=[Extension('greenify', ['greenify.pyx'],
include_dirs=include_dirs,
library_dirs=library_dirs,
libraries=['greenify'])],
cmdclass = {'build_ext': build_ext},
)