forked from thewtex/cython-cmake-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
26 lines (22 loc) · 759 Bytes
/
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
from setuptools import setup
from distutils.sysconfig import get_python_lib
import glob
import os
import sys
if os.path.exists('readme.rst'):
print("""The setup.py script should be executed from the build directory.
Please see the file 'readme.rst' for further instructions.""")
sys.exit(1)
setup(
name = "cythoncmakeexample",
package_dir = {'': 'src'},
data_files = [(get_python_lib(), glob.glob('src/*.so')),
('bin', ['bin/rectangle-props'])],
author = 'Matt McCormick',
description = 'Use the CMake build system to make Cython modules.',
license = 'Apache',
keywords = 'cmake cython build',
url = 'http:https://github.com/thewtex/cython-cmake-example',
test_require = ['nose'],
zip_safe = False,
)