-
Notifications
You must be signed in to change notification settings - Fork 33
/
setup.py
41 lines (37 loc) · 1.23 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
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
# We intend to support Python 3.5+, let's get rid of 2.x !
if (sys.version_info[0], sys.version_info[1]) <= (3, 4):
sys.exit('Sorry, only Python 3.5+ is supported')
package_files_paths = []
def package_files(directory):
global package_files_paths
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
if filename == '.gitignore':
continue
print(filename)
package_files_paths.append(os.path.join('..', path, filename))
package_files('OpenCLGA/ui')
package_files('OpenCLGA/kernel')
setup(name='OpenCLGA',
version='0.1',
description='Run a general purpose genetic algorithm on top of pyopencl.',
url='https://github.com/PyOCL/OpenCLGA.git',
author='John Hu(胡訓誠), Kilik Kuo(郭彥廷)',
author_email='[email protected], [email protected]',
license='MIT',
include_package_data=True,
packages=find_packages(),
package_data={
'OpenCLGA': package_files_paths,
},
install_requires=[
'pybind11',
'matplotlib',
'numpy',
'pyopencl'
],
zip_safe=False)