-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·48 lines (42 loc) · 1.05 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
pyver, pyvers = '>=3.7', (3,7)
import sys
if sys.version_info < pyvers:
sys.exit('ERROR: require Python %s'%pyver)
get = {}
with open('src/hycpy/version.py') as f:
exec(f.read(),get)
from setuptools import setup, find_packages
setup(
# -----------
name='hycpy',
description = "Henry's Python modules",
version = get['version'],
url = 'https://github.com/hyiprc/hycpy',
# -----------
author = 'Henry Chan',
# -----------
python_requires=pyver,
install_require = ['numpy','scipy'],
packages = find_packages('src',exclude=('hycpy.template',)),
package_dir={'':'src'},
# -----------
#entry_points = {
#'console_scripts':[
# 'hycpy = hycpy.__main__:help',
#],
#'gui_scripts':[
# # on Windows, no console window
#],
#},
# -----------
#test_suite='tests',
)
#from setuptools import Extension
#from Cython.Build import cythonize
# -----------
#ext_modules = cythonize([
# "_dbscan_inner", sources=["clustering/_dbscan_inner.pyx"],
# include_dirs=[numpy.get_include()],
# extra_compile_args=["-O3"], language="c++"
#]),